home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Tape Archive
(archive/tar).
You can browse this item here: sysvinit
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Tape Archive (archive/tar)
| magic
| Supported |
100%
| file
| POSIX tar archive (GNU)
| default
| |
99%
| file
| POSIX tar archive (GNU), directory sysvinit-2.64/, mode 42755 , uid 4065 , gid 12 , size 0 , seconds 6167230120, user miquels, group staff
| default
| |
98%
| file
| data
| default
| |
62%
| TrID
| TAR - Tape ARchive (GNU)
| default
| |
37%
| TrID
| TAR - Tape ARchive (directory)
| default
| |
100%
| siegfried
| x-fmt/265 Tape Archive Format
| default
| |
100%
| lsar
| Tar
| default
| |
100%
| gt2
| TAR Archiv gefunden (Auflistung ist deaktiviert)
| default
| |
100%
| disktype
| GNU tar archive
| default
| |
100%
| detectItEasy
| Archive: tar
| default
| |
100%
| binwalkID
| POSIX tar archive (GNU), owner user name: "-2.64/"
| default
| |
100%
| xdgMime
| application/x-tar
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 73 79 73 76 69 6e 69 74 | 2d 32 2e 36 34 2f 00 00 |sysvinit|-2.64/..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 34 32 37 | 35 35 20 00 20 20 34 30 |.... 427|55 . 40|
|00000070| 36 35 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |65 . |12 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 36 31 36 37 32 33 30 | 0 | 6167230|
|00000090| 31 32 30 20 20 31 32 32 | 35 34 00 20 35 00 00 00 |120 122|54. 5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 75 73 74 61 72 20 20 | 00 6d 69 71 75 65 6c 73 |.ustar |.miquels|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 73 74 61 66 66 00 00 |........|.staff..|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 73 79 73 76 69 6e 69 74 | 2d 32 2e 36 34 2f 4d 61 |sysvinit|-2.64/Ma|
|00000210| 6b 65 66 69 6c 65 00 00 | 00 00 00 00 00 00 00 00 |kefile..|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 34 30 |....1006|44 . 40|
|00000270| 36 35 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |65 . |12 . |
|00000280| 20 20 20 34 37 32 30 20 | 20 36 31 36 36 33 31 32 | 4720 | 6166312|
|00000290| 32 34 37 20 20 31 34 30 | 32 34 00 20 30 00 00 00 |247 140|24. 0...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 75 73 74 61 72 20 20 | 00 6d 69 71 75 65 6c 73 |.ustar |.miquels|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 73 74 61 66 66 00 00 |........|.staff..|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 23 0a 23 20 4d 61 6b 65 | 66 69 6c 65 09 4d 61 6b |#.# Make|file.Mak|
|00000410| 65 66 69 6c 65 20 66 6f | 72 20 74 68 65 20 73 79 |efile fo|r the sy|
|00000420| 73 74 65 6d 56 20 69 6e | 69 74 20 73 75 69 74 65 |stemV in|it suite|
|00000430| 2e 0a 23 09 09 54 61 72 | 67 65 74 73 3a 20 20 20 |..#..Tar|gets: |
|00000440| 61 6c 6c 20 20 20 20 20 | 20 63 6f 6d 70 69 6c 65 |all | compile|
|00000450| 73 20 65 76 65 72 79 74 | 68 69 6e 67 0a 23 09 09 |s everyt|hing.#..|
|00000460| 20 20 20 20 20 20 20 20 | 20 20 20 69 6e 73 74 61 | | insta|
|00000470| 6c 6c 20 20 69 6e 73 74 | 61 6c 6c 73 20 74 68 65 |ll inst|alls the|
|00000480| 20 62 69 6e 61 72 69 65 | 73 20 28 6e 6f 74 20 74 | binarie|s (not t|
|00000490| 68 65 20 73 63 72 69 70 | 74 73 29 0a 23 20 20 20 |he scrip|ts).# |
|000004a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000004b0| 20 20 20 20 20 20 20 63 | 6c 65 61 6e 20 20 20 20 | c|lean |
|000004c0| 63 6c 65 61 6e 73 20 75 | 70 0a 23 0a 23 20 56 65 |cleans u|p.#.# Ve|
|000004d0| 72 73 69 6f 6e 3a 09 40 | 28 23 29 4d 61 6b 65 66 |rsion:.@|(#)Makef|
|000004e0| 69 6c 65 20 20 32 2e 36 | 34 20 20 30 32 2d 4a 75 |ile 2.6|4 02-Ju|
|000004f0| 6c 2d 31 39 39 36 20 20 | 4d 76 53 0a 23 0a 0a 43 |l-1996 |MvS.#..C|
|00000500| 43 09 3d 20 63 63 0a 43 | 46 4c 41 47 53 09 3d 20 |C.= cc.C|FLAGS.= |
|00000510| 2d 57 61 6c 6c 20 2d 4f | 32 0a 4c 44 46 4c 41 47 |-Wall -O|2.LDFLAG|
|00000520| 53 09 3d 20 2d 73 0a 53 | 54 41 54 49 43 09 3d 0a |S.= -s.S|TATIC.=.|
|00000530| 0a 23 20 55 73 65 20 74 | 68 65 20 66 69 72 73 74 |.# Use t|he first|
|00000540| 20 32 20 6c 69 6e 65 73 | 20 74 6f 20 62 75 69 6c | 2 lines| to buil|
|00000550| 64 20 61 6c 6c 20 6f 66 | 20 74 68 65 20 70 72 6f |d all of| the pro|
|00000560| 67 72 61 6d 73 20 28 73 | 6f 6d 65 20 61 72 65 20 |grams (s|ome are |
|00000570| 6e 6f 6e 2d 64 65 62 69 | 61 6e 29 2e 0a 23 20 50 |non-debi|an)..# P|
|00000580| 52 4f 47 53 09 3d 20 69 | 6e 69 74 20 68 61 6c 74 |ROGS.= i|nit halt|
|00000590| 20 73 68 75 74 64 6f 77 | 6e 20 70 6f 77 65 72 64 | shutdow|n powerd|
|000005a0| 20 6b 69 6c 6c 61 6c 6c | 35 20 72 75 6e 6c 65 76 | killall|5 runlev|
|000005b0| 65 6c 20 73 75 6c 6f 67 | 69 6e 20 75 74 6d 70 64 |el sulog|in utmpd|
|000005c0| 75 6d 70 20 5c 0a 23 09 | 09 6c 61 73 74 20 6d 65 |ump \.#.|.last me|
|000005d0| 73 67 20 77 61 6c 6c 20 | 73 74 61 72 74 2d 73 74 |sg wall |start-st|
|000005e0| 6f 70 2d 64 61 65 6d 6f | 6e 0a 50 52 4f 47 53 09 |op-daemo|n.PROGS.|
|000005f0| 3d 20 69 6e 69 74 20 68 | 61 6c 74 20 73 68 75 74 |= init h|alt shut|
|00000600| 64 6f 77 6e 20 70 6f 77 | 65 72 64 20 6b 69 6c 6c |down pow|erd kill|
|00000610| 61 6c 6c 35 20 72 75 6e | 6c 65 76 65 6c 20 73 75 |all5 run|level su|
|00000620| 6c 6f 67 69 6e 20 6c 61 | 73 74 20 6d 65 73 67 0a |login la|st mesg.|
|00000630| 0a 42 49 4e 5f 4f 57 4e | 45 52 09 3d 20 72 6f 6f |.BIN_OWN|ER.= roo|
|00000640| 74 0a 42 49 4e 5f 47 52 | 4f 55 50 09 3d 20 72 6f |t.BIN_GR|OUP.= ro|
|00000650| 6f 74 0a 42 49 4e 5f 43 | 4f 4d 42 4f 09 3d 20 24 |ot.BIN_C|OMBO.= $|
|00000660| 28 42 49 4e 5f 4f 57 4e | 45 52 29 2e 24 28 42 49 |(BIN_OWN|ER).$(BI|
|00000670| 4e 5f 47 52 4f 55 50 29 | 0a 49 4e 53 54 41 4c 4c |N_GROUP)|.INSTALL|
|00000680| 09 09 3d 20 69 6e 73 74 | 61 6c 6c 20 2d 6f 20 24 |..= inst|all -o $|
|00000690| 28 42 49 4e 5f 4f 57 4e | 45 52 29 20 2d 67 20 24 |(BIN_OWN|ER) -g $|
|000006a0| 28 42 49 4e 5f 47 52 4f | 55 50 29 0a 0a 0a 61 6c |(BIN_GRO|UP)...al|
|000006b0| 6c 3a 09 09 24 28 50 52 | 4f 47 53 29 0a 0a 69 6e |l:..$(PR|OGS)..in|
|000006c0| 69 74 3a 09 09 69 6e 69 | 74 2e 63 0a 09 09 24 28 |it:..ini|t.c...$(|
|000006d0| 43 43 29 20 24 28 43 46 | 4c 41 47 53 29 20 24 28 |CC) $(CF|LAGS) $(|
|000006e0| 4c 44 46 4c 41 47 53 29 | 20 24 28 53 54 41 54 49 |LDFLAGS)| $(STATI|
|000006f0| 43 29 20 2d 6f 20 24 40 | 20 69 6e 69 74 2e 63 0a |C) -o $@| init.c.|
|00000700| 0a 73 68 75 74 64 6f 77 | 6e 2e 6f 3a 09 73 68 75 |.shutdow|n.o:.shu|
|00000710| 74 64 6f 77 6e 2e 63 0a | 0a 68 61 6c 74 3a 09 09 |tdown.c.|.halt:..|
|00000720| 68 61 6c 74 2e 63 0a 0a | 6c 61 73 74 3a 09 09 6c |halt.c..|last:..l|
|00000730| 61 73 74 2e 63 0a 0a 6d | 65 73 67 3a 09 09 6d 65 |ast.c..m|esg:..me|
|00000740| 73 67 2e 63 0a 0a 75 74 | 6d 70 64 75 6d 70 3a 09 |sg.c..ut|mpdump:.|
|00000750| 75 74 6d 70 64 75 6d 70 | 2e 63 0a 0a 70 6f 77 65 |utmpdump|.c..powe|
|00000760| 72 64 3a 09 09 70 6f 77 | 65 72 64 2e 63 0a 09 09 |rd:..pow|erd.c...|
|00000770| 24 28 43 43 29 20 24 28 | 43 46 4c 41 47 53 29 20 |$(CC) $(|CFLAGS) |
|00000780| 24 28 4c 44 46 4c 41 47 | 53 29 20 2d 6f 20 24 40 |$(LDFLAG|S) -o $@|
|00000790| 20 70 6f 77 65 72 64 2e | 63 0a 0a 73 75 6c 6f 67 | powerd.|c..sulog|
|000007a0| 69 6e 3a 09 73 75 6c 6f | 67 69 6e 2e 63 0a 09 09 |in:.sulo|gin.c...|
|000007b0| 24 28 43 43 29 20 24 28 | 43 46 4c 41 47 53 29 20 |$(CC) $(|CFLAGS) |
|000007c0| 24 28 4c 44 46 4c 41 47 | 53 29 20 24 28 53 54 41 |$(LDFLAG|S) $(STA|
|000007d0| 54 49 43 29 20 2d 6f 20 | 24 40 20 73 75 6c 6f 67 |TIC) -o |$@ sulog|
|000007e0| 69 6e 2e 63 0a 0a 73 74 | 61 72 74 2d 73 74 6f 70 |in.c..st|art-stop|
|000007f0| 2d 64 61 65 6d 6f 6e 3a | 09 73 74 61 72 74 2d 73 |-daemon:|.start-s|
|00000800| 74 6f 70 2d 64 61 65 6d | 6f 6e 2e 63 0a 09 09 24 |top-daem|on.c...$|
|00000810| 28 43 43 29 20 24 28 43 | 46 4c 41 47 53 29 20 24 |(CC) $(C|FLAGS) $|
|00000820| 28 4c 44 46 4c 41 47 53 | 29 20 24 28 53 54 41 54 |(LDFLAGS|) $(STAT|
|00000830| 49 43 29 20 2d 6f 20 24 | 40 20 73 74 61 72 74 2d |IC) -o $|@ start-|
|00000840| 73 74 6f 70 2d 64 61 65 | 6d 6f 6e 2e 63 0a 0a 77 |stop-dae|mon.c..w|
|00000850| 61 6c 6c 3a 09 09 64 6f | 77 61 6c 6c 2e 6f 20 77 |all:..do|wall.o w|
|00000860| 61 6c 6c 2e 6f 0a 09 09 | 24 28 43 43 29 20 24 28 |all.o...|$(CC) $(|
|00000870| 43 46 4c 41 47 53 29 20 | 24 28 4c 44 46 4c 41 47 |CFLAGS) |$(LDFLAG|
|00000880| 53 29 20 2d 6f 20 24 40 | 20 64 6f 77 61 6c 6c 2e |S) -o $@| dowall.|
|00000890| 6f 20 77 61 6c 6c 2e 6f | 0a 0a 73 68 75 74 64 6f |o wall.o|..shutdo|
|000008a0| 77 6e 3a 09 64 6f 77 61 | 6c 6c 2e 6f 20 73 68 75 |wn:.dowa|ll.o shu|
|000008b0| 74 64 6f 77 6e 2e 6f 0a | 09 09 24 28 43 43 29 20 |tdown.o.|..$(CC) |
|000008c0| 24 28 43 46 4c 41 47 53 | 29 20 24 28 4c 44 46 4c |$(CFLAGS|) $(LDFL|
|000008d0| 41 47 53 29 20 2d 6f 20 | 24 40 20 64 6f 77 61 6c |AGS) -o |$@ dowal|
|000008e0| 6c 2e 6f 20 73 68 75 74 | 64 6f 77 6e 2e 6f 0a 0a |l.o shut|down.o..|
|000008f0| 64 6f 77 61 6c 6c 2e 6f | 3a 09 64 6f 77 61 6c 6c |dowall.o|:.dowall|
|00000900| 2e 63 0a 0a 77 61 6c 6c | 2e 6f 3a 09 09 77 61 6c |.c..wall|.o:..wal|
|00000910| 6c 2e 63 0a 0a 72 75 6e | 6c 65 76 65 6c 3a 09 72 |l.c..run|level:.r|
|00000920| 75 6e 6c 65 76 65 6c 2e | 63 0a 0a 6b 69 6c 6c 61 |unlevel.|c..killa|
|00000930| 6c 6c 35 3a 09 6b 69 6c | 6c 61 6c 6c 35 2e 63 0a |ll5:.kil|lall5.c.|
|00000940| 0a 63 6c 65 61 6e 6f 62 | 6a 73 3a 0a 09 09 72 6d |.cleanob|js:...rm|
|00000950| 20 2d 66 20 2a 2e 6f 20 | 2a 2e 62 61 6b 0a 0a 63 | -f *.o |*.bak..c|
|00000960| 6c 65 61 6e 3a 09 09 63 | 6c 65 61 6e 6f 62 6a 73 |lean:..c|leanobjs|
|00000970| 0a 09 09 40 65 63 68 6f | 20 54 79 70 65 20 5c 22 |...@echo| Type \"|
|00000980| 6d 61 6b 65 20 63 6c 6f | 62 62 65 72 5c 22 20 74 |make clo|bber\" t|
|00000990| 6f 20 72 65 61 6c 6c 79 | 20 63 6c 65 61 6e 20 75 |o really| clean u|
|000009a0| 70 2e 0a 0a 63 6c 6f 62 | 62 65 72 3a 09 63 6c 65 |p...clob|ber:.cle|
|000009b0| 61 6e 6f 62 6a 73 0a 09 | 09 72 6d 20 2d 66 20 24 |anobjs..|.rm -f $|
|000009c0| 28 50 52 4f 47 53 29 0a | 0a 69 6e 73 74 61 6c 6c |(PROGS).|.install|
|000009d0| 3a 0a 09 09 24 28 49 4e | 53 54 41 4c 4c 29 20 2d |:...$(IN|STALL) -|
|000009e0| 6d 20 37 35 35 20 68 61 | 6c 74 20 69 6e 69 74 20 |m 755 ha|lt init |
|000009f0| 6b 69 6c 6c 61 6c 6c 35 | 20 73 75 6c 6f 67 69 6e |killall5| sulogin|
|00000a00| 20 5c 0a 09 09 09 70 6f | 77 65 72 64 20 72 75 6e | \....po|werd run|
|00000a10| 6c 65 76 65 6c 20 73 68 | 75 74 64 6f 77 6e 20 24 |level sh|utdown $|
|00000a20| 28 52 4f 4f 54 29 2f 73 | 62 69 6e 0a 09 09 23 20 |(ROOT)/s|bin...# |
|00000a30| 54 68 65 73 65 20 61 72 | 65 20 6e 6f 74 20 69 6e |These ar|e not in|
|00000a40| 73 74 61 6c 6c 65 64 20 | 62 79 20 64 65 66 61 75 |stalled |by defau|
|00000a50| 6c 74 0a 09 09 23 20 24 | 28 49 4e 53 54 41 4c 4c |lt...# $|(INSTALL|
|00000a60| 29 20 2d 6d 20 35 35 35 | 20 75 74 6d 70 64 75 6d |) -m 555| utmpdum|
|00000a70| 70 20 77 61 6c 6c 20 24 | 28 52 4f 4f 54 29 2f 75 |p wall $|(ROOT)/u|
|00000a80| 73 72 2f 62 69 6e 0a 09 | 09 23 20 24 28 49 4e 53 |sr/bin..|.# $(INS|
|00000a90| 54 41 4c 4c 29 20 2d 6d | 20 37 35 35 20 65 74 63 |TALL) -m| 755 etc|
|00000aa0| 2f 69 6e 69 74 73 63 72 | 69 70 74 2e 73 61 6d 70 |/initscr|ipt.samp|
|00000ab0| 6c 65 20 24 28 52 4f 4f | 54 29 2f 65 74 63 0a 09 |le $(ROO|T)/etc..|
|00000ac0| 09 24 28 49 4e 53 54 41 | 4c 4c 29 20 2d 6d 20 37 |.$(INSTA|LL) -m 7|
|00000ad0| 35 35 20 6d 65 73 67 20 | 6c 61 73 74 20 24 28 52 |55 mesg |last $(R|
|00000ae0| 4f 4f 54 29 2f 75 73 72 | 2f 62 69 6e 0a 09 09 63 |OOT)/usr|/bin...c|
|00000af0| 64 20 24 28 52 4f 4f 54 | 29 2f 75 73 72 2f 62 69 |d $(ROOT|)/usr/bi|
|00000b00| 6e 3b 20 6c 6e 20 2d 73 | 66 20 6c 61 73 74 20 6c |n; ln -s|f last l|
|00000b10| 61 73 74 62 3b 20 63 68 | 6f 77 6e 20 24 28 42 49 |astb; ch|own $(BI|
|00000b20| 4e 5f 43 4f 4d 42 4f 29 | 20 6c 61 73 74 62 0a 09 |N_COMBO)| lastb..|
|00000b30| 09 63 64 20 24 28 52 4f | 4f 54 29 2f 73 62 69 6e |.cd $(RO|OT)/sbin|
|00000b40| 3b 20 6c 6e 20 2d 73 66 | 20 68 61 6c 74 20 72 65 |; ln -sf| halt re|
|00000b50| 62 6f 6f 74 3b 20 63 68 | 6f 77 6e 20 24 28 42 49 |boot; ch|own $(BI|
|00000b60| 4e 5f 43 4f 4d 42 4f 29 | 20 72 65 62 6f 6f 74 0a |N_COMBO)| reboot.|
|00000b70| 09 09 63 64 20 24 28 52 | 4f 4f 54 29 2f 73 62 69 |..cd $(R|OOT)/sbi|
|00000b80| 6e 3b 20 6c 6e 20 2d 73 | 66 20 6b 69 6c 6c 61 6c |n; ln -s|f killal|
|00000b90| 6c 35 20 70 69 64 6f 66 | 3b 20 63 68 6f 77 6e 20 |l5 pidof|; chown |
|00000ba0| 24 28 42 49 4e 5f 43 4f | 4d 42 4f 29 20 70 69 64 |$(BIN_CO|MBO) pid|
|00000bb0| 6f 66 0a 09 09 63 64 20 | 24 28 52 4f 4f 54 29 2f |of...cd |$(ROOT)/|
|00000bc0| 73 62 69 6e 3b 20 6c 6e | 20 2d 73 66 20 69 6e 69 |sbin; ln| -sf ini|
|00000bd0| 74 20 74 65 6c 69 6e 69 | 74 3b 20 63 68 6f 77 6e |t telini|t; chown|
|00000be0| 20 24 28 42 49 4e 5f 43 | 4f 4d 42 4f 29 20 74 65 | $(BIN_C|OMBO) te|
|00000bf0| 6c 69 6e 69 74 0a 09 09 | 24 28 49 4e 53 54 41 4c |linit...|$(INSTAL|
|00000c00| 4c 29 20 2d 6d 20 36 34 | 34 20 2a 2e 38 20 24 28 |L) -m 64|4 *.8 $(|
|00000c10| 52 4f 4f 54 29 2f 75 73 | 72 2f 6d 61 6e 2f 6d 61 |ROOT)/us|r/man/ma|
|00000c20| 6e 38 0a 09 09 24 28 49 | 4e 53 54 41 4c 4c 29 20 |n8...$(I|NSTALL) |
|00000c30| 2d 6d 20 36 34 34 20 2a | 2e 35 20 24 28 52 4f 4f |-m 644 *|.5 $(ROO|
|00000c40| 54 29 2f 75 73 72 2f 6d | 61 6e 2f 6d 61 6e 35 0a |T)/usr/m|an/man5.|
|00000c50| 09 09 23 20 53 6f 6d 65 | 20 6d 61 6e 70 61 67 65 |..# Some| manpage|
|00000c60| 73 20 6e 6f 74 20 69 6e | 73 74 61 6c 6c 65 64 20 |s not in|stalled |
|00000c70| 62 79 20 64 65 66 61 75 | 6c 74 2e 0a 09 09 23 20 |by defau|lt....# |
|00000c80| 24 28 49 4e 53 54 41 4c | 4c 29 20 2d 6d 20 36 34 |$(INSTAL|L) -m 64|
|00000c90| 34 20 77 61 6c 6c 2e 31 | 20 24 28 52 4f 4f 54 29 |4 wall.1| $(ROOT)|
|00000ca0| 2f 75 73 72 2f 6d 61 6e | 2f 6d 61 6e 31 0a 09 09 |/usr/man|/man1...|
|00000cb0| 24 28 49 4e 53 54 41 4c | 4c 29 20 2d 6d 20 36 34 |$(INSTAL|L) -m 64|
|00000cc0| 34 20 6c 61 73 74 2e 31 | 20 6c 61 73 74 62 2e 31 |4 last.1| lastb.1|
|00000cd0| 20 6d 65 73 67 2e 31 20 | 24 28 52 4f 4f 54 29 2f | mesg.1 |$(ROOT)/|
|00000ce0| 75 73 72 2f 6d 61 6e 2f | 6d 61 6e 31 0a 09 09 23 |usr/man/|man1...#|
|00000cf0| 0a 09 09 23 20 54 68 69 | 73 20 70 61 72 74 20 69 |...# Thi|s part i|
|00000d00| 73 20 73 6b 69 70 70 65 | 64 20 6f 6e 20 64 65 62 |s skippe|d on deb|
|00000d10| 69 61 6e 20 73 79 73 74 | 65 6d 73 2c 20 74 68 65 |ian syst|ems, the|
|00000d20| 0a 09 09 23 20 64 65 62 | 69 61 6e 2e 70 72 65 69 |...# deb|ian.prei|
|00000d30| 6e 73 74 20 73 63 72 69 | 70 74 20 74 61 6b 65 73 |nst scri|pt takes|
|00000d40| 20 63 61 72 65 20 6f 66 | 20 69 74 2e 0a 09 09 40 | care of| it....@|
|00000d50| 69 66 20 5b 20 21 20 2d | 70 20 2f 64 65 76 2f 69 |if [ ! -|p /dev/i|
|00000d60| 6e 69 74 63 74 6c 20 5d | 3b 20 74 68 65 6e 20 5c |nitctl ]|; then \|
|00000d70| 0a 09 09 20 65 63 68 6f | 20 22 43 72 65 61 74 69 |... echo| "Creati|
|00000d80| 6e 67 20 2f 64 65 76 2f | 69 6e 69 74 63 74 6c 22 |ng /dev/|initctl"|
|00000d90| 3b 20 5c 0a 09 09 20 72 | 6d 20 2d 66 20 2f 64 65 |; \... r|m -f /de|
|00000da0| 76 2f 69 6e 69 74 63 74 | 6c 3b 20 5c 0a 09 09 20 |v/initct|l; \... |
|00000db0| 6d 6b 6e 6f 64 20 2d 6d | 20 36 30 30 20 2f 64 65 |mknod -m| 600 /de|
|00000dc0| 76 2f 69 6e 69 74 63 74 | 6c 20 70 3b 20 66 69 0a |v/initct|l p; fi.|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 73 79 73 76 69 6e 69 74 | 2d 32 2e 36 34 2f 50 72 |sysvinit|-2.64/Pr|
|00000e10| 6f 70 61 67 61 6e 64 61 | 00 00 00 00 00 00 00 00 |opaganda|........|
|00000e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e60| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 34 30 |....1006|44 . 40|
|00000e70| 36 35 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |65 . |12 . |
|00000e80| 20 20 20 36 36 33 31 20 | 20 36 30 37 32 32 37 33 | 6631 | 6072273|
|00000e90| 36 30 36 20 20 31 34 33 | 36 37 00 20 30 00 00 00 |606 143|67. 0...|
|00000ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f00| 00 75 73 74 61 72 20 20 | 00 6d 69 71 75 65 6c 73 |.ustar |.miquels|
|00000f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f20| 00 00 00 00 00 00 00 00 | 00 73 74 61 66 66 00 00 |........|.staff..|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 0a 0a 09 50 72 6f 70 61 | 67 61 6e 64 61 20 66 6f |...Propa|ganda fo|
|00001010| 72 20 76 65 72 73 69 6f | 6e 20 32 2e 35 38 20 6f |r versio|n 2.58 o|
|00001020| 66 20 73 79 73 76 69 6e | 69 74 20 26 20 75 74 69 |f sysvin|it & uti|
|00001030| 6c 69 74 69 65 73 0a 09 | 3d 3d 3d 3d 3d 3d 3d 3d |lities..|========|
|00001040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001060| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0a 0a 4e 4f 54 45 |========|==..NOTE|
|00001070| 3a 20 49 66 20 79 6f 75 | 20 75 73 65 20 61 20 73 |: If you| use a s|
|00001080| 74 61 6e 64 61 72 64 20 | 64 69 73 74 72 69 62 75 |tandard |distribu|
|00001090| 74 69 6f 6e 20 6c 69 6b | 65 20 53 6c 61 63 6b 77 |tion lik|e Slackw|
|000010a0| 61 72 65 2c 20 44 65 62 | 69 61 6e 0a 6f 72 20 52 |are, Deb|ian.or R|
|000010b0| 65 64 68 61 74 20 74 68 | 65 72 65 20 70 72 6f 62 |edhat th|ere prob|
|000010c0| 61 62 6c 79 20 69 73 20 | 6e 6f 20 6e 65 65 64 20 |ably is |no need |
|000010d0| 74 6f 20 75 70 67 72 61 | 64 65 2e 20 49 6e 73 74 |to upgra|de. Inst|
|000010e0| 61 6c 6c 69 6e 67 20 73 | 79 73 76 69 6e 69 74 0a |alling s|ysvinit.|
|000010f0| 69 73 20 6f 6e 6c 79 20 | 66 6f 72 20 74 68 6f 73 |is only |for thos|
|00001100| 65 20 74 68 61 74 20 75 | 70 67 72 61 64 65 20 74 |e that u|pgrade t|
|00001110| 68 65 69 72 20 73 79 73 | 74 65 6d 20 62 79 20 68 |heir sys|tem by h|
|00001120| 61 6e 64 20 6f 72 20 66 | 6f 72 20 70 65 6f 70 6c |and or f|or peopl|
|00001130| 65 0a 74 68 61 74 20 63 | 72 65 61 74 65 20 4c 69 |e.that c|reate Li|
|00001140| 6e 75 78 20 64 69 73 74 | 72 69 62 75 74 69 6f 6e |nux dist|ribution|
|00001150| 73 2e 0a 0a 53 79 73 76 | 69 6e 69 74 20 69 73 20 |s...Sysv|init is |
|00001160| 70 72 6f 62 61 62 6c 79 | 20 74 68 65 20 6d 6f 73 |probably| the mos|
|00001170| 74 20 77 69 64 65 6c 79 | 20 75 73 65 64 20 69 6e |t widely| used in|
|00001180| 69 74 20 70 61 63 6b 61 | 67 65 20 66 6f 72 20 4c |it packa|ge for L|
|00001190| 69 6e 75 78 2e 0a 4d 6f | 73 74 20 64 69 73 74 72 |inux..Mo|st distr|
|000011a0| 69 62 75 74 69 6f 6e 73 | 20 75 73 65 20 69 74 2e |ibutions| use it.|
|000011b0| 20 73 79 73 76 69 6e 69 | 74 20 32 2e 34 20 69 73 | sysvini|t 2.4 is|
|000011c0| 20 72 65 61 6c 6c 79 20 | 61 20 67 6f 6f 64 20 70 | really |a good p|
|000011d0| 61 63 6b 61 67 65 2c 0a | 61 6e 64 20 69 74 20 77 |ackage,.|and it w|
|000011e0| 61 73 20 6e 6f 74 20 74 | 68 65 20 6e 65 65 64 20 |as not t|he need |
|000011f0| 66 6f 72 20 62 75 67 66 | 69 78 65 73 20 62 75 74 |for bugf|ixes but|
|00001200| 20 74 68 65 20 6e 65 65 | 64 20 66 6f 72 20 6d 6f | the nee|d for mo|
|00001210| 72 65 20 66 65 61 74 75 | 72 65 73 0a 74 68 61 74 |re featu|res.that|
|00001220| 20 6d 61 64 65 20 6d 65 | 20 77 6f 72 6b 20 6f 6e | made me| work on|
|00001230| 20 73 79 73 76 69 6e 69 | 74 20 61 67 61 69 6e 2e | sysvini|t again.|
|00001240| 0a 0a 53 79 73 76 69 6e | 69 74 20 69 73 20 6e 6f |..Sysvin|it is no|
|00001250| 77 20 61 20 64 65 62 69 | 61 6e 20 70 61 63 6b 61 |w a debi|an packa|
|00001260| 67 65 2e 20 44 65 62 69 | 61 6e 20 73 6f 75 72 63 |ge. Debi|an sourc|
|00001270| 65 20 70 61 63 6b 61 67 | 65 73 20 61 72 65 20 6e |e packag|es are n|
|00001280| 6f 74 0a 73 70 65 63 69 | 61 6c 20 69 6e 20 61 6e |ot.speci|al in an|
|00001290| 79 20 77 61 79 20 2d 2d | 20 69 6e 20 66 61 63 74 |y way --| in fact|
|000012a0| 20 79 6f 75 20 63 61 6e | 20 6a 75 73 74 20 75 6e | you can| just un|
|000012b0| 70 61 63 6b 20 61 6e 64 | 20 63 6f 6d 70 69 6c 65 |pack and| compile|
|000012c0| 0a 69 74 20 6f 6e 20 61 | 6e 79 20 6f 74 68 65 72 |.it on a|ny other|
|000012d0| 20 4c 69 6e 75 78 20 64 | 69 73 74 72 69 62 75 74 | Linux d|istribut|
|000012e0| 69 6f 6e 2e 0a 0a 54 68 | 65 72 65 20 77 61 73 20 |ion...Th|ere was |
|000012f0| 61 20 32 2e 35 30 20 72 | 65 6c 65 61 73 65 20 6f |a 2.50 r|elease o|
|00001300| 66 20 73 79 73 76 69 6e | 69 74 20 62 75 74 20 74 |f sysvin|it but t|
|00001310| 68 61 74 20 77 61 73 20 | 6e 6f 74 20 76 65 72 79 |hat was |not very|
|00001320| 20 70 6f 70 75 6c 61 72 | 2d 0a 73 6f 6d 65 20 6f | popular|-.some o|
|00001330| 66 20 74 68 65 20 69 6e | 63 6c 75 64 65 64 20 73 |f the in|cluded s|
|00001340| 63 72 69 70 74 73 20 62 | 72 6f 6b 65 20 77 69 74 |cripts b|roke wit|
|00001350| 68 20 63 65 72 74 61 69 | 6e 20 73 68 65 6c 6c 73 |h certai|n shells|
|00001360| 20 61 6e 64 20 6f 74 68 | 65 72 0a 6d 69 6e 6f 72 | and oth|er.minor|
|00001370| 20 74 68 69 6e 67 73 20 | 6c 69 6b 65 20 74 68 61 | things |like tha|
|00001380| 74 2e 20 55 6e 66 6f 72 | 74 75 6e 61 74 65 6c 79 |t. Unfor|tunately|
|00001390| 20 49 20 77 61 73 20 6e | 6f 74 20 61 62 6c 65 20 | I was n|ot able |
|000013a0| 74 6f 20 66 69 78 20 74 | 68 69 73 0a 61 74 20 74 |to fix t|his.at t|
|000013b0| 68 65 20 74 69 6d 65 20 | 62 65 63 61 75 73 65 20 |he time |because |
|000013c0| 49 20 77 61 73 20 61 62 | 72 6f 61 64 20 66 6f 72 |I was ab|road for|
|000013d0| 20 73 6f 6d 65 20 74 69 | 6d 65 2e 20 54 68 65 72 | some ti|me. Ther|
|000013e0| 65 66 6f 72 65 20 74 68 | 65 0a 64 65 73 63 72 69 |efore th|e.descri|
|000013f0| 70 74 69 6f 6e 20 62 65 | 6c 6f 77 20 69 73 20 61 |ption be|low is a|
|00001400| 20 63 6f 6d 70 61 72 69 | 73 6f 6e 20 6f 66 20 32 | compari|son of 2|
|00001410| 2e 34 20 61 6e 64 20 32 | 2e 35 38 20 28 61 63 74 |.4 and 2|.58 (act|
|00001420| 75 61 6c 6c 79 20 74 68 | 65 0a 73 61 6d 65 20 62 |ually th|e.same b|
|00001430| 6c 75 72 62 20 61 73 20 | 66 72 6f 6d 20 74 68 65 |lurb as |from the|
|00001440| 20 32 2e 35 30 20 61 6e | 6e 6f 75 6e 63 65 20 62 | 2.50 an|nounce b|
|00001450| 75 74 20 75 70 64 61 74 | 65 64 29 2e 0a 0a 57 72 |ut updat|ed)...Wr|
|00001460| 74 20 32 2e 34 2c 20 73 | 6f 6d 65 20 6f 66 20 74 |t 2.4, s|ome of t|
|00001470| 68 65 20 63 6f 64 65 20 | 68 61 73 20 62 65 65 6e |he code |has been|
|00001480| 20 6d 61 64 65 20 73 69 | 6d 70 6c 65 72 2e 20 45 | made si|mpler. E|
|00001490| 76 65 72 79 74 68 69 6e | 67 2c 20 66 72 6f 6d 0a |verythin|g, from.|
|000014a0| 68 61 6c 74 20 74 6f 20 | 72 65 62 6f 6f 74 20 74 |halt to |reboot t|
|000014b0| 6f 20 73 69 6e 67 6c 65 | 20 75 73 65 72 20 6d 6f |o single| user mo|
|000014c0| 64 65 20 69 73 20 6e 6f | 77 20 64 6f 6e 65 20 62 |de is no|w done b|
|000014d0| 79 20 73 68 65 6c 6c 20 | 73 63 72 69 70 74 73 0a |y shell |scripts.|
|000014e0| 74 68 61 74 20 61 72 65 | 20 65 78 65 63 75 74 65 |that are| execute|
|000014f0| 64 20 64 69 72 65 63 74 | 6c 79 20 62 79 20 69 6e |d direct|ly by in|
|00001500| 69 74 20 28 66 72 6f 6d | 20 2f 65 74 63 2f 69 6e |it (from| /etc/in|
|00001510| 69 74 74 61 62 29 2c 20 | 73 6f 20 73 68 75 74 64 |ittab), |so shutd|
|00001520| 6f 77 6e 0a 64 6f 65 73 | 20 6e 6f 74 20 6b 69 6c |own.does| not kil|
|00001530| 6c 20 70 72 6f 63 65 73 | 73 65 73 20 61 6e 79 6d |l proces|ses anym|
|00001540| 6f 72 65 20 61 6e 64 20 | 74 68 65 6e 20 63 61 6c |ore and |then cal|
|00001550| 6c 73 20 72 65 62 6f 6f | 74 20 2d 20 69 74 20 6d |ls reboo|t - it m|
|00001560| 65 72 65 6c 79 0a 64 6f | 65 73 20 73 6f 6d 65 20 |erely.do|es some |
|00001570| 77 61 6c 6c 27 73 20 74 | 6f 20 74 68 65 20 6c 6f |wall's t|o the lo|
|00001580| 67 67 65 64 20 69 6e 20 | 75 73 65 72 73 20 61 6e |gged in |users an|
|00001590| 64 20 74 68 65 6e 20 73 | 77 69 74 63 68 65 73 20 |d then s|witches |
|000015a0| 74 6f 0a 72 75 6e 6c 65 | 76 65 6c 20 30 20 28 68 |to.runle|vel 0 (h|
|000015b0| 61 6c 74 29 2c 20 31 20 | 28 73 69 6e 67 6c 65 20 |alt), 1 |(single |
|000015c0| 75 73 65 72 29 20 6f 72 | 20 36 20 28 72 65 62 6f |user) or| 6 (rebo|
|000015d0| 6f 74 29 2e 0a 0a 49 20 | 68 61 76 65 20 72 65 6d |ot)...I |have rem|
|000015e0| 6f 76 65 64 20 73 75 70 | 70 6f 72 74 20 66 6f 72 |oved sup|port for|
|000015f0| 20 74 68 65 20 6f 6c 64 | 20 73 74 79 6c 65 20 73 | the old| style s|
|00001600| 63 72 69 70 74 73 3b 20 | 74 68 65 20 69 6e 63 6c |cripts; |the incl|
|00001610| 75 64 65 64 0a 65 78 61 | 6d 70 6c 65 20 73 63 72 |uded.exa|mple scr|
|00001620| 69 70 74 73 20 61 72 65 | 20 74 68 65 20 44 65 62 |ipts are| the Deb|
|00001630| 69 61 6e 20 47 4e 55 2f | 4c 69 6e 75 78 20 64 69 |ian GNU/|Linux di|
|00001640| 73 74 72 69 62 75 74 69 | 6f 6e 20 73 63 72 69 70 |stributi|on scrip|
|00001650| 74 73 2e 0a 54 68 69 73 | 20 64 6f 65 73 20 6e 6f |ts..This| does no|
|00001660| 74 20 6d 65 61 6e 20 74 | 68 61 74 20 65 67 20 74 |t mean t|hat eg t|
|00001670| 68 65 20 53 6c 61 63 6b | 77 61 72 65 20 73 63 72 |he Slack|ware scr|
|00001680| 69 70 74 73 20 73 74 6f | 70 20 74 6f 20 77 6f 72 |ipts sto|p to wor|
|00001690| 6b 3b 0a 79 6f 75 20 63 | 61 6e 20 70 72 6f 62 61 |k;.you c|an proba|
|000016a0| 62 6c 79 20 64 72 6f 70 | 20 74 68 69 73 20 69 6e |bly drop| this in|
|000016b0| 69 74 20 69 6e 74 6f 20 | 53 6c 61 63 6b 77 61 72 |it into |Slackwar|
|000016c0| 65 20 33 2e 30 20 77 69 | 74 68 6f 75 74 20 70 72 |e 3.0 wi|thout pr|
|000016d0| 6f 62 6c 65 6d 73 2e 0a | 0a 4d 6f 73 74 20 70 65 |oblems..|.Most pe|
|000016e0| 6f 70 6c 65 20 68 61 76 | 65 20 61 6e 20 65 6e 74 |ople hav|e an ent|
|000016f0| 72 79 20 69 6e 20 69 6e | 69 74 74 61 62 20 74 6f |ry in in|ittab to|
|00001700| 20 72 75 6e 20 73 68 75 | 74 64 6f 77 6e 20 77 68 | run shu|tdown wh|
|00001710| 65 6e 20 43 54 52 4c 2d | 41 4c 54 2d 44 45 4c 0a |en CTRL-|ALT-DEL.|
|00001720| 69 73 20 70 72 65 73 73 | 65 64 3b 20 61 20 66 65 |is press|ed; a fe|
|00001730| 61 74 75 72 65 20 68 61 | 73 20 62 65 65 6e 20 61 |ature ha|s been a|
|00001740| 64 64 65 64 20 74 6f 20 | 73 68 75 74 64 6f 77 6e |dded to |shutdown|
|00001750| 20 74 6f 20 63 68 65 63 | 6b 20 69 66 20 61 0a 61 | to chec|k if a.a|
|00001760| 75 74 68 6f 72 69 7a 65 | 64 20 75 73 65 72 20 69 |uthorize|d user i|
|00001770| 73 20 6c 6f 67 67 65 64 | 20 69 6e 20 6f 6e 20 6f |s logged| in on o|
|00001780| 6e 65 20 6f 66 20 74 68 | 65 20 63 6f 6e 73 6f 6c |ne of th|e consol|
|00001790| 65 73 20 74 6f 20 73 65 | 65 20 69 66 20 61 0a 73 |es to se|e if a.s|
|000017a0| 68 75 74 64 6f 77 6e 20 | 69 73 20 61 6c 6c 6f 77 |hutdown |is allow|
|000017b0| 65 64 2e 20 54 68 69 73 | 20 63 61 6e 20 62 65 20 |ed. This| can be |
|000017c0| 63 6f 6e 66 69 67 75 72 | 65 64 20 77 69 74 68 20 |configur|ed with |
|000017d0| 61 6e 20 61 63 63 65 73 | 73 20 66 69 6c 65 2e 0a |an acces|s file..|
|000017e0| 0a 53 6f 6d 65 20 6f 74 | 68 65 72 20 67 65 6e 65 |.Some ot|her gene|
|000017f0| 72 61 6c 20 63 68 61 6e | 67 65 73 3a 0a 2d 20 75 |ral chan|ges:.- u|
|00001800| 74 69 6c 69 74 79 20 22 | 72 75 6e 6c 65 76 65 6c |tility "|runlevel|
|00001810| 22 20 74 6f 20 72 65 61 | 64 20 74 68 65 20 63 75 |" to rea|d the cu|
|00001820| 72 72 65 6e 74 20 61 6e | 64 20 70 72 65 76 69 6f |rrent an|d previo|
|00001830| 75 73 20 72 75 6e 6c 65 | 76 65 6c 20 66 72 6f 6d |us runle|vel from|
|00001840| 0a 20 20 2f 76 61 72 2f | 72 75 6e 2f 75 74 6d 70 |. /var/|run/utmp|
|00001850| 20 28 69 74 27 73 20 61 | 6c 73 6f 20 73 68 6f 77 | (it's a|lso show|
|00001860| 6e 20 6f 6e 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |n on the| command|
|00001870| 20 6c 69 6e 65 20 69 66 | 20 79 6f 75 20 64 6f 20 | line if| you do |
|00001880| 61 20 22 70 73 22 29 2e | 0a 2d 20 75 6e 72 65 63 |a "ps").|.- unrec|
|00001890| 6b 6f 67 6e 69 7a 65 64 | 20 6f 70 74 69 6f 6e 73 |kognized| options|
|000018a0| 20 61 72 65 20 73 69 6c | 65 6e 74 6c 79 20 69 67 | are sil|ently ig|
|000018b0| 6e 6f 72 65 64 20 28 73 | 75 63 68 20 61 73 20 74 |nored (s|uch as t|
|000018c0| 68 65 20 69 6e 66 61 6d | 6f 75 73 0a 20 20 22 72 |he infam|ous. "r|
|000018d0| 6f 22 20 2d 20 6d 6f 75 | 6e 74 20 72 6f 6f 74 20 |o" - mou|nt root |
|000018e0| 66 69 6c 65 20 73 79 73 | 74 65 6d 20 72 65 61 64 |file sys|tem read|
|000018f0| 20 6f 6e 6c 79 29 2e 0a | 2d 20 69 66 20 74 68 65 | only)..|- if the|
|00001900| 20 66 69 6c 65 20 2f 65 | 74 63 2f 69 6e 69 74 73 | file /e|tc/inits|
|00001910| 63 72 69 70 74 20 69 73 | 20 70 72 65 73 65 6e 74 |cript is| present|
|00001920| 20 69 74 20 77 69 6c 6c | 20 62 65 20 75 73 65 64 | it will| be used|
|00001930| 20 74 6f 20 6c 61 75 6e | 63 68 0a 20 20 61 6c 6c | to laun|ch. all|
|00001940| 20 70 72 6f 67 72 61 6d | 73 20 74 68 61 74 20 69 | program|s that i|
|00001950| 6e 69 74 20 73 74 61 72 | 74 73 20 28 73 6f 20 74 |nit star|ts (so t|
|00001960| 68 61 74 20 79 6f 75 20 | 63 61 6e 20 73 65 74 20 |hat you |can set |
|00001970| 61 20 67 65 6e 65 72 69 | 63 0a 20 20 75 6d 61 73 |a generi|c. umas|
|00001980| 6b 2c 20 75 6c 69 6d 69 | 74 20 65 67 20 66 6f 72 |k, ulimi|t eg for|
|00001990| 20 41 4c 4c 20 70 72 6f | 63 65 73 73 65 73 20 2d | ALL pro|cesses -|
|000019a0| 20 73 65 65 20 69 6e 69 | 74 73 63 72 69 70 74 2e | see ini|tscript.|
|000019b0| 73 61 6d 70 6c 65 29 2e | 0a 2d 20 41 20 22 73 75 |sample).|.- A "su|
|000019c0| 6c 6f 67 69 6e 22 20 70 | 72 6f 67 72 61 6d 20 61 |login" p|rogram a|
|000019d0| 64 64 65 64 20 74 68 61 | 74 20 61 6c 77 61 79 73 |dded tha|t always|
|000019e0| 20 61 73 6b 73 20 66 6f | 72 20 74 68 65 20 72 6f | asks fo|r the ro|
|000019f0| 6f 74 0a 20 20 70 61 73 | 73 73 77 6f 72 64 20 62 |ot. pas|ssword b|
|00001a00| 65 66 6f 72 65 20 65 6e | 74 65 72 69 6e 67 20 73 |efore en|tering s|
|00001a10| 69 6e 67 6c 65 20 75 73 | 65 72 20 6d 6f 64 65 2e |ingle us|er mode.|
|00001a20| 0a 2d 20 41 20 22 2d 62 | 22 20 66 6c 61 67 20 74 |.- A "-b|" flag t|
|00001a30| 6f 20 69 6e 69 74 20 74 | 68 61 74 20 73 74 61 72 |o init t|hat star|
|00001a40| 74 73 20 61 20 73 68 65 | 6c 6c 20 61 74 20 62 6f |ts a she|ll at bo|
|00001a50| 6f 74 20 74 69 6d 65 20 | 62 65 66 6f 72 65 0a 20 |ot time |before. |
|00001a60| 20 5f 61 6e 79 5f 20 6f | 74 68 65 72 20 70 72 6f | _any_ o|ther pro|
|00001a70| 63 65 73 73 69 6e 67 2e | 0a 2d 20 49 20 6d 6f 76 |cessing.|.- I mov|
|00001a80| 65 64 20 2f 65 74 63 2f | 66 61 73 74 62 6f 6f 74 |ed /etc/|fastboot|
|00001a90| 20 74 6f 20 2f 66 61 73 | 74 62 6f 6f 74 20 2d 20 | to /fas|tboot - |
|00001aa0| 77 6f 6e 64 65 72 20 77 | 68 61 74 20 74 68 61 74 |wonder w|hat that|
|00001ab0| 27 73 20 67 6f 6e 6e 61 | 20 62 72 65 61 6b 20 3a |'s gonna| break :|
|00001ac0| 29 0a 2d 20 49 20 65 76 | 65 6e 20 75 70 64 61 74 |).- I ev|en updat|
|00001ad0| 65 64 20 74 68 65 20 6d | 61 6e 70 61 67 65 73 21 |ed the m|anpages!|
|00001ae0| 0a 0a 52 69 67 68 74 2c | 20 6e 6f 77 20 73 6f 6d |..Right,| now som|
|00001af0| 65 20 62 6f 72 69 6e 67 | 20 73 74 75 66 66 20 79 |e boring| stuff y|
|00001b00| 6f 75 20 61 6c 72 65 61 | 64 79 20 6b 6e 6f 77 20 |ou alrea|dy know |
|00001b10| 73 69 6e 63 65 20 69 74 | 27 73 20 74 68 65 20 73 |since it|'s the s|
|00001b20| 61 6d 65 0a 61 73 20 69 | 6e 20 74 68 65 20 32 2e |ame.as i|n the 2.|
|00001b30| 34 20 72 65 6c 65 61 73 | 65 3a 0a 0a 54 68 65 20 |4 releas|e:..The |
|00001b40| 73 79 73 76 69 6e 69 74 | 20 70 61 63 6b 61 67 65 |sysvinit| package|
|00001b50| 20 69 6e 63 6c 75 64 65 | 73 0a 0a 2a 20 61 20 73 | include|s..* a s|
|00001b60| 79 73 76 20 63 6f 6d 70 | 61 74 69 62 6c 65 20 2f |ysv comp|atible /|
|00001b70| 73 62 69 6e 2f 69 6e 69 | 74 20 70 72 6f 67 72 61 |sbin/ini|t progra|
|00001b80| 6d 0a 2a 20 61 20 74 65 | 6c 69 6e 69 74 20 70 72 |m.* a te|linit pr|
|00001b90| 6f 67 72 61 6d 20 28 65 | 72 2c 20 6a 75 73 74 20 |ogram (e|r, just |
|00001ba0| 61 20 6c 69 6e 6b 20 74 | 6f 20 2f 73 62 69 6e 2f |a link t|o /sbin/|
|00001bb0| 69 6e 69 74 29 20 74 6f | 20 63 68 61 6e 67 65 20 |init) to| change |
|00001bc0| 72 75 6e 6c 65 76 65 6c | 73 0a 2a 20 61 20 66 65 |runlevel|s.* a fe|
|00001bd0| 61 74 75 72 65 66 75 6c | 20 73 68 75 74 64 6f 77 |atureful| shutdow|
|00001be0| 6e 0a 2a 20 68 61 6c 74 | 20 61 6e 64 20 72 65 62 |n.* halt| and reb|
|00001bf0| 6f 6f 74 20 74 6f 20 61 | 73 73 69 73 74 20 73 68 |oot to a|ssist sh|
|00001c00| 75 74 64 6f 77 6e 0a 2a | 20 61 20 76 65 72 79 20 |utdown.*| a very |
|00001c10| 66 6f 72 67 69 76 69 6e | 67 20 6c 61 73 74 20 75 |forgivin|g last u|
|00001c20| 74 69 6c 69 74 79 0a 2a | 20 74 68 65 20 77 61 6c |tility.*| the wal|
|00001c30| 6c 20 26 20 6d 65 73 67 | 20 70 72 6f 67 72 61 6d |l & mesg| program|
|00001c40| 73 20 28 6e 6f 74 20 69 | 6e 73 74 61 6c 6c 65 64 |s (not i|nstalled|
|00001c50| 20 62 79 20 64 65 66 61 | 75 6c 74 29 0a 2a 20 6d | by defa|ult).* m|
|00001c60| 61 6e 70 61 67 65 73 20 | 66 6f 72 20 65 76 65 72 |anpages |for ever|
|00001c70| 79 74 68 69 6e 67 0a 0a | 54 68 65 20 6e 65 77 20 |ything..|The new |
|00001c80| 73 79 73 76 20 69 6e 69 | 74 20 63 61 6e 20 62 65 |sysv ini|t can be|
|00001c90| 20 66 6f 75 6e 64 20 6f | 6e 3a 0a 0a 74 73 78 2d | found o|n:..tsx-|
|00001ca0| 31 31 2e 6d 69 74 2e 65 | 64 75 3a 2f 70 75 62 2f |11.mit.e|du:/pub/|
|00001cb0| 6c 69 6e 75 78 2f 73 6f | 75 72 63 65 73 2f 73 62 |linux/so|urces/sb|
|00001cc0| 69 6e 20 61 73 20 73 79 | 73 76 69 6e 69 74 2d 32 |in as sy|svinit-2|
|00001cd0| 2e 35 38 2d 31 2e 74 61 | 72 2e 67 7a 0a 73 75 6e |.58-1.ta|r.gz.sun|
|00001ce0| 73 69 74 65 2e 75 6e 63 | 2e 65 64 75 3a 2f 70 75 |site.unc|.edu:/pu|
|00001cf0| 62 2f 4c 69 6e 75 78 2f | 73 79 73 74 65 6d 2f 44 |b/Linux/|system/D|
|00001d00| 61 65 6d 6f 6e 73 20 61 | 73 20 73 79 73 76 69 6e |aemons a|s sysvin|
|00001d10| 69 74 2d 32 2e 35 38 2d | 31 2e 74 61 72 2e 67 7a |it-2.58-|1.tar.gz|
|00001d20| 0a 0a 49 74 20 77 69 6c | 6c 20 62 65 20 6d 6f 76 |..It wil|l be mov|
|00001d30| 65 64 20 74 68 65 72 65 | 20 69 6e 20 61 20 66 65 |ed there| in a fe|
|00001d40| 77 20 64 61 79 73 2c 20 | 69 6e 20 74 68 65 20 6d |w days, |in the m|
|00001d50| 65 61 6e 20 74 69 6d 65 | 20 69 74 20 69 73 0a 70 |ean time| it is.p|
|00001d60| 72 6f 62 61 62 6c 79 20 | 69 6e 20 74 68 65 20 49 |robably |in the I|
|00001d70| 6e 63 6f 6d 69 6e 67 20 | 64 69 72 65 63 74 6f 72 |ncoming |director|
|00001d80| 79 2e 0a 0a 4d 69 6b 65 | 2e 20 28 30 32 2d 4a 61 |y...Mike|. (02-Ja|
|00001d90| 6e 2d 31 39 39 36 29 0a | 0a 00 00 00 00 00 00 00 |n-1996).|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 73 79 73 76 69 6e 69 74 | 2d 32 2e 36 34 2f 72 65 |sysvinit|-2.64/re|
|00001e10| 62 6f 6f 74 2e 38 00 00 | 00 00 00 00 00 00 00 00 |boot.8..|........|
|00001e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e60| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 34 30 |....1006|44 . 40|
|00001e70| 36 35 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |65 . |12 . |
|00001e80| 20 20 20 20 20 32 30 20 | 20 35 36 35 33 37 31 30 | 20 | 5653710|
|00001e90| 35 35 35 20 20 31 33 37 | 30 30 00 20 30 00 00 00 |555 137|00. 0...|
|00001ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f00| 00 75 73 74 61 72 20 20 | 00 6d 69 71 75 65 6c 73 |.ustar |.miquels|
|00001f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f20| 00 00 00 00 00 00 00 00 | 00 73 74 61 66 66 00 00 |........|.staff..|
|00001f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002000| 2e 73 6f 20 6d 61 6e 38 | 2f 68 61 6c 74 2e 38 0a |.so man8|/halt.8.|
|00002010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002080| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002200| 73 79 73 76 69 6e 69 74 | 2d 32 2e 36 34 2f 64 6f |sysvinit|-2.64/do|
|00002210| 77 61 6c 6c 2e 63 00 00 | 00 00 00 00 00 00 00 00 |wall.c..|........|
|00002220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002260| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 34 30 |....1006|44 . 40|
|00002270| 36 35 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |65 . |12 . |
|00002280| 20 20 20 35 36 37 34 20 | 20 36 31 36 36 33 31 32 | 5674 | 6166312|
|00002290| 33 35 30 20 20 31 34 30 | 31 36 00 20 30 00 00 00 |350 140|16. 0...|
|000022a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002300| 00 75 73 74 61 72 20 20 | 00 6d 69 71 75 65 6c 73 |.ustar |.miquels|
|00002310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002320| 00 00 00 00 00 00 00 00 | 00 73 74 61 66 66 00 00 |........|.staff..|
|00002330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002400| 2f 2a 0a 20 2a 20 64 6f | 77 61 6c 6c 2e 63 09 2d |/*. * do|wall.c.-|
|00002410| 20 57 72 69 74 65 20 74 | 6f 20 61 6c 6c 20 75 73 | Write t|o all us|
|00002420| 65 72 73 20 6f 6e 20 74 | 68 65 20 73 79 73 74 65 |ers on t|he syste|
|00002430| 6d 2e 0a 20 2a 0a 20 2a | 20 41 75 74 68 6f 72 3a |m.. *. *| Author:|
|00002440| 09 20 20 4d 69 71 75 65 | 6c 20 76 61 6e 20 53 6d |. Mique|l van Sm|
|00002450| 6f 6f 72 65 6e 62 75 72 | 67 2c 20 6d 69 71 75 65 |oorenbur|g, mique|
|00002460| 6c 73 40 64 72 69 6e 6b | 65 6c 2e 63 69 73 74 72 |ls@drink|el.cistr|
|00002470| 6f 6e 2e 6e 6c 0a 20 2a | 20 0a 20 2a 20 56 65 72 |on.nl. *| . * Ver|
|00002480| 73 69 6f 6e 3a 09 20 20 | 31 2e 30 31 20 20 31 38 |sion:. |1.01 18|
|00002490| 2d 31 31 2d 31 39 39 32 | 0a 20 2a 09 09 20 20 2d |-11-1992|. *.. -|
|000024a0| 20 69 6e 69 74 69 61 6c | 20 76 65 72 73 69 6f 6e | initial| version|
|000024b0| 2e 0a 20 2a 0a 20 2a 09 | 09 20 20 31 2e 31 20 20 |.. *. *.|. 1.1 |
|000024c0| 20 33 31 2d 30 31 2d 31 | 39 39 33 0a 20 2a 09 09 | 31-01-1|993. *..|
|000024d0| 20 20 2d 20 4d 61 64 65 | 20 74 68 65 20 6f 70 65 | - Made| the ope|
|000024e0| 6e 28 29 20 6e 6f 6e 20 | 62 6c 6f 63 6b 69 6e 67 |n() non |blocking|
|000024f0| 2c 20 73 6f 20 74 68 61 | 74 20 66 61 6c 73 65 20 |, so tha|t false |
|00002500| 75 74 6d 70 0a 20 2a 09 | 09 20 20 20 20 65 6e 74 |utmp. *.|. ent|
|00002510| 72 69 65 73 20 77 69 6c | 6c 20 6e 6f 74 20 62 6c |ries wil|l not bl|
|00002520| 6f 63 6b 20 77 61 6c 6c | 2e 0a 20 2a 0a 20 2a 09 |ock wall|.. *. *.|
|00002530| 09 20 20 31 2e 32 20 20 | 20 31 33 2d 30 35 2d 31 |. 1.2 | 13-05-1|
|00002540| 39 39 33 0a 20 2a 09 09 | 20 20 2d 20 41 64 64 65 |993. *..| - Adde|
|00002550| 64 20 73 6f 6d 65 20 6d | 6f 72 65 20 63 6f 64 65 |d some m|ore code|
|00002560| 20 74 6f 20 70 72 65 76 | 65 6e 74 20 27 68 61 6e | to prev|ent 'han|
|00002570| 67 69 6e 67 27 20 6f 6e | 0a 20 2a 09 09 20 20 20 |ging' on|. *.. |
|00002580| 20 6f 70 65 6e 28 29 27 | 73 20 6f 72 20 77 72 69 | open()'|s or wri|
|00002590| 74 65 28 29 27 73 2e 0a | 20 2a 0a 20 2a 09 09 54 |te()'s..| *. *..T|
|000025a0| 68 69 73 20 66 69 6c 65 | 20 69 73 20 70 61 72 74 |his file| is part|
|000025b0| 20 6f 66 20 74 68 65 20 | 73 79 73 76 69 6e 69 74 | of the |sysvinit|
|000025c0| 20 73 75 69 74 65 2c 0a | 20 2a 09 09 43 6f 70 79 | suite,.| *..Copy|
|000025d0| 72 69 67 68 74 20 31 39 | 39 31 2d 31 39 39 35 20 |right 19|91-1995 |
|000025e0| 4d 69 71 75 65 6c 20 76 | 61 6e 20 53 6d 6f 6f 72 |Miquel v|an Smoor|
|000025f0| 65 6e 62 75 72 67 2e 0a | 20 2a 0a 20 2a 09 09 54 |enburg..| *. *..T|
|00002600| 68 69 73 20 70 72 6f 67 | 72 61 6d 20 69 73 20 66 |his prog|ram is f|
|00002610| 72 65 65 20 73 6f 66 74 | 77 61 72 65 3b 20 79 6f |ree soft|ware; yo|
|00002620| 75 20 63 61 6e 20 72 65 | 64 69 73 74 72 69 62 75 |u can re|distribu|
|00002630| 74 65 20 69 74 20 61 6e | 64 2f 6f 72 0a 20 2a 09 |te it an|d/or. *.|
|00002640| 09 6d 6f 64 69 66 79 20 | 69 74 20 75 6e 64 65 72 |.modify |it under|
|00002650| 20 74 68 65 20 74 65 72 | 6d 73 20 6f 66 20 74 68 | the ter|ms of th|
|00002660| 65 20 47 4e 55 20 47 65 | 6e 65 72 61 6c 20 50 75 |e GNU Ge|neral Pu|
|00002670| 62 6c 69 63 20 4c 69 63 | 65 6e 73 65 0a 20 2a 09 |blic Lic|ense. *.|
|00002680| 09 61 73 20 70 75 62 6c | 69 73 68 65 64 20 62 79 |.as publ|ished by|
|00002690| 20 74 68 65 20 46 72 65 | 65 20 53 6f 66 74 77 61 | the Fre|e Softwa|
|000026a0| 72 65 20 46 6f 75 6e 64 | 61 74 69 6f 6e 3b 20 65 |re Found|ation; e|
|000026b0| 69 74 68 65 72 20 76 65 | 72 73 69 6f 6e 0a 20 2a |ither ve|rsion. *|
|000026c0| 09 09 32 20 6f 66 20 74 | 68 65 20 4c 69 63 65 6e |..2 of t|he Licen|
|000026d0| 73 65 2c 20 6f 72 20 28 | 61 74 20 79 6f 75 72 20 |se, or (|at your |
|000026e0| 6f 70 74 69 6f 6e 29 20 | 61 6e 79 20 6c 61 74 65 |option) |any late|
|000026f0| 72 20 76 65 72 73 69 6f | 6e 2e 0a 20 2a 2f 0a 23 |r versio|n.. */.#|
|00002700| 69 6e 63 6c 75 64 65 20 | 3c 73 79 73 2f 74 79 70 |include |<sys/typ|
|00002710| 65 73 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |es.h>.#i|nclude <|
|00002720| 73 79 73 2f 73 74 61 74 | 2e 68 3e 0a 23 69 6e 63 |sys/stat|.h>.#inc|
|00002730| 6c 75 64 65 20 3c 73 74 | 64 6c 69 62 2e 68 3e 0a |lude <st|dlib.h>.|
|00002740| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 72 69 6e 67 |#include| <string|
|00002750| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 74 69 |.h>.#inc|lude <ti|
|00002760| 6d 65 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |me.h>.#i|nclude <|
|00002770| 75 6e 69 73 74 64 2e 68 | 3e 0a 23 69 6e 63 6c 75 |unistd.h|>.#inclu|
|00002780| 64 65 20 3c 73 74 64 69 | 6f 2e 68 3e 0a 23 69 6e |de <stdi|o.h>.#in|
|00002790| 63 6c 75 64 65 20 3c 75 | 74 6d 70 2e 68 3e 0a 23 |clude <u|tmp.h>.#|
|000027a0| 69 6e 63 6c 75 64 65 20 | 3c 70 77 64 2e 68 3e 0a |include |<pwd.h>.|
|000027b0| 23 69 6e 63 6c 75 64 65 | 20 3c 66 63 6e 74 6c 2e |#include| <fcntl.|
|000027c0| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 69 67 |h>.#incl|ude <sig|
|000027d0| 6e 61 6c 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |nal.h>.#|include |
|000027e0| 3c 73 65 74 6a 6d 70 2e | 68 3e 0a 0a 73 74 61 74 |<setjmp.|h>..stat|
|000027f0| 69 63 20 6a 6d 70 5f 62 | 75 66 20 6a 62 75 66 3b |ic jmp_b|uf jbuf;|
|00002800| 0a 0a 23 64 65 66 69 6e | 65 20 41 45 52 4f 53 4d |..#defin|e AEROSM|
|00002810| 49 54 48 0a 0a 2f 2a 20 | 41 6c 61 72 6d 20 68 61 |ITH../* |Alarm ha|
|00002820| 6e 64 6c 65 72 20 2a 2f | 0a 2f 2a 41 52 47 53 55 |ndler */|./*ARGSU|
|00002830| 53 45 44 2a 2f 0a 73 74 | 61 74 69 63 20 76 6f 69 |SED*/.st|atic voi|
|00002840| 64 20 68 61 6e 64 6c 65 | 72 28 61 72 67 29 0a 69 |d handle|r(arg).i|
|00002850| 6e 74 20 61 72 67 3b 0a | 7b 0a 20 20 73 69 67 6e |nt arg;.|{. sign|
|00002860| 61 6c 28 53 49 47 41 4c | 52 4d 2c 20 68 61 6e 64 |al(SIGAL|RM, hand|
|00002870| 6c 65 72 29 3b 0a 20 20 | 6c 6f 6e 67 6a 6d 70 28 |ler);. |longjmp(|
|00002880| 6a 62 75 66 2c 20 31 29 | 3b 0a 7d 0a 0a 2f 2a 0a |jbuf, 1)|;.}../*.|
|00002890| 20 2a 20 57 61 6c 6c 20 | 66 75 6e 63 74 69 6f 6e | * Wall |function|
|000028a0| 2e 0a 20 2a 2f 0a 76 6f | 69 64 20 77 61 6c 6c 28 |.. */.vo|id wall(|
|000028b0| 74 65 78 74 2c 20 66 72 | 6f 6d 73 68 75 74 64 6f |text, fr|omshutdo|
|000028c0| 77 6e 29 0a 63 68 61 72 | 20 2a 74 65 78 74 3b 0a |wn).char| *text;.|
|000028d0| 69 6e 74 20 66 72 6f 6d | 73 68 75 74 64 6f 77 6e |int from|shutdown|
|000028e0| 3b 0a 7b 0a 20 20 46 49 | 4c 45 20 2a 66 70 2c 20 |;.{. FI|LE *fp, |
|000028f0| 2a 74 70 3b 0a 20 20 63 | 68 61 72 20 6c 69 6e 65 |*tp;. c|har line|
|00002900| 5b 38 31 5d 3b 0a 20 20 | 63 68 61 72 20 74 65 72 |[81];. |char ter|
|00002910| 6d 5b 33 32 5d 3b 0a 20 | 20 73 74 61 74 69 63 20 |m[32];. | static |
|00002920| 63 68 61 72 20 2a 75 73 | 65 72 2c 20 74 74 79 6e |char *us|er, ttyn|
|00002930| 6d 5b 31 36 5d 2c 20 2a | 64 61 74 65 3b 0a 20 20 |m[16], *|date;. |
|00002940| 73 74 61 74 69 63 20 69 | 6e 74 20 66 64 2c 20 69 |static i|nt fd, i|
|00002950| 6e 69 74 20 3d 20 30 3b | 0a 20 20 73 74 72 75 63 |nit = 0;|. struc|
|00002960| 74 20 70 61 73 73 77 64 | 20 2a 70 77 64 3b 0a 20 |t passwd| *pwd;. |
|00002970| 20 63 68 61 72 20 2a 74 | 74 79 2c 20 2a 70 3b 0a | char *t|ty, *p;.|
|00002980| 20 20 74 69 6d 65 5f 74 | 20 74 3b 0a 20 20 73 74 | time_t| t;. st|
|00002990| 72 75 63 74 20 75 74 6d | 70 20 75 74 6d 70 3b 0a |ruct utm|p utmp;.|
|000029a0| 20 20 0a 20 20 69 66 20 | 28 28 66 70 20 3d 20 66 | . if |((fp = f|
|000029b0| 6f 70 65 6e 28 55 54 4d | 50 5f 46 49 4c 45 2c 20 |open(UTM|P_FILE, |
|000029c0| 22 72 22 29 29 20 3d 3d | 20 28 46 49 4c 45 20 2a |"r")) ==| (FILE *|
|000029d0| 29 30 29 20 72 65 74 75 | 72 6e 3b 0a 20 20 0a 20 |)0) retu|rn;. . |
|000029e0| 20 69 66 20 28 69 6e 69 | 74 20 3d 3d 20 30 29 20 | if (ini|t == 0) |
|000029f0| 7b 0a 20 20 09 69 66 20 | 28 28 70 77 64 20 3d 20 |{. .if |((pwd = |
|00002a00| 67 65 74 70 77 75 69 64 | 28 67 65 74 75 69 64 28 |getpwuid|(getuid(|
|00002a10| 29 29 29 20 3d 3d 20 28 | 73 74 72 75 63 74 20 70 |))) == (|struct p|
|00002a20| 61 73 73 77 64 20 2a 29 | 30 29 20 7b 0a 20 20 09 |asswd *)|0) {. .|
|00002a30| 09 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c |.fprintf|(stderr,|
|00002a40| 20 22 59 6f 75 20 64 6f | 6e 27 74 20 65 78 69 73 | "You do|n't exis|
|00002a50| 74 2e 20 47 6f 20 61 77 | 61 79 2e 5c 6e 22 29 3b |t. Go aw|ay.\n");|
|00002a60| 0a 20 20 09 09 65 78 69 | 74 28 31 29 3b 0a 20 20 |. ..exi|t(1);. |
|00002a70| 09 7d 0a 20 20 09 75 73 | 65 72 20 3d 20 70 77 64 |.}. .us|er = pwd|
|00002a80| 2d 3e 70 77 5f 6e 61 6d | 65 3b 0a 20 20 09 69 66 |->pw_nam|e;. .if|
|00002a90| 20 28 28 70 20 3d 20 74 | 74 79 6e 61 6d 65 28 30 | ((p = t|tyname(0|
|00002aa0| 29 29 20 21 3d 20 28 63 | 68 61 72 20 2a 29 30 29 |)) != (c|har *)0)|
|00002ab0| 20 7b 0a 20 20 09 09 69 | 66 20 28 28 74 74 79 20 | {. ..i|f ((tty |
|00002ac0| 3d 20 73 74 72 72 63 68 | 72 28 70 2c 20 27 2f 27 |= strrch|r(p, '/'|
|00002ad0| 29 29 20 21 3d 20 4e 55 | 4c 4c 29 0a 20 20 09 09 |)) != NU|LL). ..|
|00002ae0| 09 74 74 79 2b 2b 3b 0a | 20 20 09 09 65 6c 73 65 |.tty++;.| ..else|
|00002af0| 0a 20 20 09 09 09 74 74 | 79 20 3d 20 70 3b 0a 20 |. ...tt|y = p;. |
|00002b00| 20 09 09 73 70 72 69 6e | 74 66 28 74 74 79 6e 6d | ..sprin|tf(ttynm|
|00002b10| 2c 20 22 28 25 73 29 20 | 22 2c 20 74 74 79 29 3b |, "(%s) |", tty);|
|00002b20| 09 0a 20 20 09 7d 20 65 | 6c 73 65 0a 20 20 09 09 |.. .} e|lse. ..|
|00002b30| 74 74 79 6e 6d 5b 30 5d | 20 3d 20 30 3b 0a 20 20 |ttynm[0]| = 0;. |
|00002b40| 09 69 6e 69 74 2b 2b 3b | 0a 09 73 69 67 6e 61 6c |.init++;|..signal|
|00002b50| 28 53 49 47 41 4c 52 4d | 2c 20 68 61 6e 64 6c 65 |(SIGALRM|, handle|
|00002b60| 72 29 3b 0a 20 20 7d 0a | 20 20 0a 20 20 2f 2a 20 |r);. }.| . /* |
|00002b70| 47 65 74 20 74 68 65 20 | 74 69 6d 65 20 2a 2f 0a |Get the |time */.|
|00002b80| 20 20 74 69 6d 65 28 26 | 74 29 3b 0a 20 20 64 61 | time(&|t);. da|
|00002b90| 74 65 20 3d 20 63 74 69 | 6d 65 28 26 74 29 3b 0a |te = cti|me(&t);.|
|00002ba0| 20 20 66 6f 72 28 70 20 | 3d 20 64 61 74 65 3b 20 | for(p |= date; |
|00002bb0| 2a 70 20 26 26 20 2a 70 | 20 21 3d 20 27 5c 6e 27 |*p && *p| != '\n'|
|00002bc0| 3b 20 70 2b 2b 29 0a 20 | 20 09 3b 0a 20 20 2a 70 |; p++). | .;. *p|
|00002bd0| 20 3d 20 30 3b 0a 0a 20 | 20 73 70 72 69 6e 74 66 | = 0;.. | sprintf|
|00002be0| 28 6c 69 6e 65 2c 20 22 | 5c 30 30 37 5c 72 5c 6e |(line, "|\007\r\n|
|00002bf0| 42 72 6f 61 64 63 61 73 | 74 20 6d 65 73 73 61 67 |Broadcas|t messag|
|00002c00| 65 20 66 72 6f 6d 20 25 | 73 20 25 73 25 73 2e 2e |e from %|s %s%s..|
|00002c10| 2e 5c 72 5c 6e 5c 72 5c | 6e 22 2c 20 75 73 65 72 |.\r\n\r\|n", user|
|00002c20| 2c 0a 20 20 09 74 74 79 | 6e 6d 2c 20 64 61 74 65 |,. .tty|nm, date|
|00002c30| 29 3b 0a 0a 20 20 77 68 | 69 6c 65 28 66 72 65 61 |);.. wh|ile(frea|
|00002c40| 64 28 26 75 74 6d 70 2c | 20 73 69 7a 65 6f 66 28 |d(&utmp,| sizeof(|
|00002c50| 73 74 72 75 63 74 20 75 | 74 6d 70 29 2c 20 31 2c |struct u|tmp), 1,|
|00002c60| 20 66 70 29 20 3d 3d 20 | 31 29 20 7b 0a 20 20 09 | fp) == |1) {. .|
|00002c70| 69 66 28 75 74 6d 70 2e | 75 74 5f 74 79 70 65 20 |if(utmp.|ut_type |
|00002c80| 21 3d 20 55 53 45 52 5f | 50 52 4f 43 45 53 53 20 |!= USER_|PROCESS |
|00002c90| 7c 7c 0a 09 20 20 20 75 | 74 6d 70 2e 75 74 5f 75 |||.. u|tmp.ut_u|
|00002ca0| 73 65 72 5b 30 5d 20 3d | 3d 20 30 29 20 63 6f 6e |ser[0] =|= 0) con|
|00002cb0| 74 69 6e 75 65 3b 0a 20 | 20 09 73 70 72 69 6e 74 |tinue;. | .sprint|
|00002cc0| 66 28 74 65 72 6d 2c 20 | 22 2f 64 65 76 2f 25 73 |f(term, |"/dev/%s|
|00002cd0| 22 2c 20 75 74 6d 70 2e | 75 74 5f 6c 69 6e 65 29 |", utmp.|ut_line)|
|00002ce0| 3b 0a 0a 09 61 6c 61 72 | 6d 28 32 29 3b 20 2f 2a |;...alar|m(2); /*|
|00002cf0| 20 53 6f 6d 65 74 69 6d | 65 73 20 74 68 65 20 6f | Sometim|es the o|
|00002d00| 70 65 6e 2f 77 72 69 74 | 65 20 68 61 6e 67 73 20 |pen/writ|e hangs |
|00002d10| 69 6e 20 73 70 69 74 65 | 20 6f 66 20 74 68 65 20 |in spite| of the |
|00002d20| 4f 5f 4e 44 45 4c 41 59 | 20 2a 2f 0a 23 69 66 64 |O_NDELAY| */.#ifd|
|00002d30| 65 66 20 4f 5f 4e 44 45 | 4c 41 59 0a 09 2f 2a 20 |ef O_NDE|LAY../* |
|00002d40| 4f 70 65 6e 20 69 74 20 | 6e 6f 6e 2d 64 65 6c 61 |Open it |non-dela|
|00002d50| 79 20 2a 2f 0a 09 69 66 | 20 28 73 65 74 6a 6d 70 |y */..if| (setjmp|
|00002d60| 28 6a 62 75 66 29 20 3d | 3d 20 30 20 26 26 20 28 |(jbuf) =|= 0 && (|
|00002d70| 66 64 20 3d 20 6f 70 65 | 6e 28 74 65 72 6d 2c 20 |fd = ope|n(term, |
|00002d80| 4f 5f 57 52 4f 4e 4c 59 | 20 7c 20 4f 5f 4e 44 45 |O_WRONLY| | O_NDE|
|00002d90| 4c 41 59 20 29 29 20 3e | 20 30 29 20 7b 0a 20 20 |LAY )) >| 0) {. |
|00002da0| 09 09 69 66 20 28 28 74 | 70 20 3d 20 66 64 6f 70 |..if ((t|p = fdop|
|00002db0| 65 6e 28 66 64 2c 20 22 | 77 22 29 29 20 21 3d 20 |en(fd, "|w")) != |
|00002dc0| 4e 55 4c 4c 29 20 7b 0a | 20 20 09 09 09 66 70 75 |NULL) {.| ...fpu|
|00002dd0| 74 73 28 6c 69 6e 65 2c | 20 74 70 29 3b 0a 20 20 |ts(line,| tp);. |
|00002de0| 09 09 09 66 70 75 74 73 | 28 74 65 78 74 2c 20 74 |...fputs|(text, t|
|00002df0| 70 29 3b 0a 23 69 66 64 | 65 66 20 41 45 52 4f 53 |p);.#ifd|ef AEROS|
|00002e00| 4d 49 54 48 0a 09 09 09 | 69 66 20 28 66 72 6f 6d |MITH....|if (from|
|00002e10| 73 68 75 74 64 6f 77 6e | 20 26 26 20 21 73 74 72 |shutdown| && !str|
|00002e20| 63 6d 70 28 75 74 6d 70 | 2e 75 74 5f 75 73 65 72 |cmp(utmp|.ut_user|
|00002e30| 2c 20 22 74 79 6c 65 72 | 22 29 29 0a 09 09 09 20 |, "tyler|")).... |
|00002e40| 66 70 75 74 73 28 22 28 | 57 65 6c 6c 20 68 65 6c |fputs("(|Well hel|
|00002e50| 6c 6f 20 4d 72 2e 20 54 | 79 6c 65 72 20 2d 20 67 |lo Mr. T|yler - g|
|00002e60| 6f 69 6e 67 20 44 4f 57 | 4e 3f 29 5c 72 5c 6e 22 |oing DOW|N?)\r\n"|
|00002e70| 2c 20 74 70 29 3b 0a 23 | 65 6e 64 69 66 0a 20 20 |, tp);.#|endif. |
|00002e80| 09 09 09 66 63 6c 6f 73 | 65 28 74 70 29 3b 0a 20 |...fclos|e(tp);. |
|00002e90| 20 09 09 7d 20 65 6c 73 | 65 0a 09 09 09 63 6c 6f | ..} els|e....clo|
|00002ea0| 73 65 28 66 64 29 3b 0a | 09 09 66 64 20 3d 20 2d |se(fd);.|..fd = -|
|00002eb0| 31 3b 0a 09 09 61 6c 61 | 72 6d 28 30 29 3b 0a 09 |1;...ala|rm(0);..|
|00002ec0| 7d 0a 09 69 66 20 28 66 | 64 20 3e 3d 20 30 29 20 |}..if (f|d >= 0) |
|00002ed0| 63 6c 6f 73 65 28 66 64 | 29 3b 0a 23 65 6c 73 65 |close(fd|);.#else|
|00002ee0| 0a 20 20 09 69 66 20 28 | 73 65 74 6a 6d 70 28 6a |. .if (|setjmp(j|
|00002ef0| 62 75 66 29 20 3d 3d 20 | 30 20 26 26 20 28 74 70 |buf) == |0 && (tp|
|00002f00| 20 3d 20 66 6f 70 65 6e | 28 74 65 72 6d 2c 20 22 | = fopen|(term, "|
|00002f10| 77 22 29 29 20 21 3d 20 | 4e 55 4c 4c 29 20 7b 0a |w")) != |NULL) {.|
|00002f20| 20 20 09 09 66 70 75 74 | 73 28 6c 69 6e 65 2c 20 | ..fput|s(line, |
|00002f30| 74 70 29 3b 0a 20 20 09 | 09 66 70 75 74 73 28 74 |tp);. .|.fputs(t|
|00002f40| 65 78 74 2c 20 74 70 29 | 3b 0a 09 09 61 6c 61 72 |ext, tp)|;...alar|
|00002f50| 6d 28 30 29 3b 0a 20 20 | 09 09 66 63 6c 6f 73 65 |m(0);. |..fclose|
|00002f60| 28 74 70 29 3b 0a 09 09 | 74 70 20 3d 20 4e 55 4c |(tp);...|tp = NUL|
|00002f70| 4c 3b 0a 20 20 09 7d 0a | 09 69 66 20 28 74 70 20 |L;. .}.|.if (tp |
|00002f80| 21 3d 20 4e 55 4c 4c 29 | 20 66 63 6c 6f 73 65 28 |!= NULL)| fclose(|
|00002f90| 74 70 29 3b 0a 23 65 6e | 64 69 66 0a 09 61 6c 61 |tp);.#en|dif..ala|
|00002fa0| 72 6d 28 30 29 3b 0a 20 | 20 7d 0a 20 20 66 63 6c |rm(0);. | }. fcl|
|00002fb0| 6f 73 65 28 66 70 29 3b | 0a 7d 0a 0a 00 00 00 00 |ose(fp);|.}......|
|00002fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003000| 73 79 73 76 69 6e 69 74 | 2d 32 2e 36 34 2f 64 65 |sysvinit|-2.64/de|
|00003010| 62 69 61 6e 2e 72 75 6c | 65 73 00 00 00 00 00 00 |bian.rul|es......|
|00003020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003060| 00 00 00 00 31 30 30 37 | 35 35 20 00 20 20 34 30 |....1007|55 . 40|
|00003070| 36 35 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |65 . |12 . |
|00003080| 20 20 20 37 35 37 37 20 | 20 36 31 36 33 32 35 30 | 7577 | 6163250|
|00003090| 31 37 35 20 20 31 34 37 | 30 30 00 20 30 00 00 00 |175 147|00. 0...|
|000030a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003100| 00 75 73 74 61 72 20 20 | 00 6d 69 71 75 65 6c 73 |.ustar |.miquels|
|00003110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003120| 00 00 00 00 00 00 00 00 | 00 73 74 61 66 66 00 00 |........|.staff..|
|00003130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003200| 23 21 20 2f 75 73 72 2f | 62 69 6e 2f 6d 61 6b 65 |#! /usr/|bin/make|
|00003210| 20 2d 66 0a 23 0a 23 20 | 4c 61 73 74 20 75 70 64 | -f.#.# |Last upd|
|00003220| 61 74 65 64 3a 20 57 65 | 64 20 4d 61 79 20 31 35 |ated: We|d May 15|
|00003230| 20 32 32 3a 35 32 3a 30 | 38 20 4d 45 54 20 44 53 | 22:52:0|8 MET DS|
|00003240| 54 20 31 39 39 36 0a 23 | 0a 23 20 54 6f 20 6d 61 |T 1996.#|.# To ma|
|00003250| 6b 65 20 74 68 65 20 62 | 69 6e 61 72 79 20 64 69 |ke the b|inary di|
|00003260| 73 74 72 69 62 75 74 69 | 6f 6e 20 70 61 63 6b 61 |stributi|on packa|
|00003270| 67 65 2c 20 74 68 65 20 | 60 60 44 65 62 69 61 6e |ge, the |``Debian|
|00003280| 69 7a 65 64 27 27 20 73 | 6f 75 72 63 65 20 70 61 |ized'' s|ource pa|
|00003290| 63 6b 61 67 65 0a 23 20 | 61 6e 64 20 74 68 65 20 |ckage.# |and the |
|000032a0| 63 6f 6e 74 65 78 74 20 | 64 69 66 66 20 74 6f 20 |context |diff to |
|000032b0| 74 68 65 20 6f 72 69 67 | 69 6e 61 6c 20 70 61 63 |the orig|inal pac|
|000032c0| 6b 61 67 65 2c 20 74 79 | 70 65 20 60 2e 2f 64 65 |kage, ty|pe `./de|
|000032d0| 62 69 61 6e 2e 72 75 6c | 65 73 20 64 69 73 74 27 |bian.rul|es dist'|
|000032e0| 2e 0a 23 20 4d 61 6b 65 | 20 73 75 72 65 20 74 68 |..# Make| sure th|
|000032f0| 61 74 20 60 64 65 62 69 | 61 6e 2e 72 75 6c 65 73 |at `debi|an.rules|
|00003300| 27 20 69 73 20 65 78 65 | 63 75 74 61 62 6c 65 20 |' is exe|cutable |
|00003310| 62 65 66 6f 72 65 20 74 | 68 65 20 66 69 6e 61 6c |before t|he final|
|00003320| 20 64 69 73 74 72 69 62 | 75 74 69 6f 6e 0a 23 20 | distrib|ution.# |
|00003330| 69 73 20 6d 61 64 65 2e | 0a 23 0a 23 20 49 6e 76 |is made.|.#.# Inv|
|00003340| 6f 6b 65 20 65 61 63 68 | 20 74 61 72 67 65 74 20 |oke each| target |
|00003350| 77 69 74 68 20 60 2e 2f | 64 65 62 69 61 6e 2e 72 |with `./|debian.r|
|00003360| 75 6c 65 73 20 3c 74 61 | 72 67 65 74 3e 27 2e 20 |ules <ta|rget>'. |
|00003370| 20 41 6c 6c 20 74 61 72 | 67 65 74 73 20 73 68 6f | All tar|gets sho|
|00003380| 75 6c 64 20 62 65 0a 23 | 20 69 6e 76 6f 6b 65 64 |uld be.#| invoked|
|00003390| 20 77 69 74 68 20 74 68 | 65 20 70 61 63 6b 61 67 | with th|e packag|
|000033a0| 65 20 72 6f 6f 74 20 61 | 73 20 74 68 65 20 63 75 |e root a|s the cu|
|000033b0| 72 72 65 6e 74 20 64 69 | 72 65 63 74 6f 72 79 2e |rrent di|rectory.|
|000033c0| 0a 23 0a 23 20 54 68 65 | 20 60 62 69 6e 61 72 79 |.#.# The| `binary|
|000033d0| 27 20 74 61 72 67 65 74 | 20 6d 75 73 74 20 62 65 |' target| must be|
|000033e0| 20 72 75 6e 20 61 73 20 | 72 6f 6f 74 2c 20 61 73 | run as |root, as|
|000033f0| 20 69 74 20 6e 65 65 64 | 73 20 74 6f 20 69 6e 73 | it need|s to ins|
|00003400| 74 61 6c 6c 20 66 69 6c | 65 73 20 77 69 74 68 0a |tall fil|es with.|
|00003410| 23 20 73 70 65 63 69 66 | 69 63 20 6f 77 6e 65 72 |# specif|ic owner|
|00003420| 73 68 69 70 73 2e 20 20 | 54 68 65 20 60 64 69 66 |ships. |The `dif|
|00003430| 66 27 20 74 61 72 67 65 | 74 20 61 73 73 75 6d 65 |f' targe|t assume|
|00003440| 73 20 74 68 61 74 20 79 | 6f 75 20 68 61 76 65 20 |s that y|ou have |
|00003450| 74 68 65 20 6f 72 69 67 | 69 6e 61 6c 0a 23 20 73 |the orig|inal.# s|
|00003460| 6f 75 72 63 65 20 70 61 | 63 6b 61 67 65 20 61 76 |ource pa|ckage av|
|00003470| 61 69 6c 61 62 6c 65 2c | 20 75 6e 70 61 63 6b 65 |ailable,| unpacke|
|00003480| 64 2c 20 69 6e 20 2e 2e | 2f 24 28 70 29 2d 24 28 |d, in ..|/$(p)-$(|
|00003490| 76 29 2e 6f 72 69 67 2c | 20 6f 72 20 74 68 61 74 |v).orig,| or that|
|000034a0| 20 79 6f 75 20 68 61 76 | 65 0a 23 20 74 68 65 20 | you hav|e.# the |
|000034b0| 70 72 65 76 69 6f 75 73 | 20 72 65 76 69 73 69 6f |previous| revisio|
|000034c0| 6e 20 6f 66 20 74 68 65 | 20 60 60 44 65 62 69 61 |n of the| ``Debia|
|000034d0| 6e 69 7a 65 64 27 27 20 | 73 6f 75 72 63 65 20 70 |nized'' |source p|
|000034e0| 61 63 6b 61 67 65 20 61 | 6e 64 20 63 6f 6e 74 65 |ackage a|nd conte|
|000034f0| 78 74 20 64 69 66 66 0a | 23 20 69 6e 20 74 68 65 |xt diff.|# in the|
|00003500| 20 70 61 72 65 6e 74 20 | 64 69 72 65 63 74 6f 72 | parent |director|
|00003510| 79 2e 0a 0a 23 20 54 68 | 65 20 6e 61 6d 65 20 6f |y...# Th|e name o|
|00003520| 66 20 74 68 65 20 70 61 | 63 6b 61 67 65 20 28 66 |f the pa|ckage (f|
|00003530| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 60 65 6d 61 |or examp|le, `ema|
|00003540| 63 73 27 29 2e 0a 70 20 | 3d 20 73 79 73 76 69 6e |cs')..p |= sysvin|
|00003550| 69 74 0a 23 20 54 68 65 | 20 76 65 72 73 69 6f 6e |it.# The| version|
|00003560| 20 6f 66 20 74 68 65 20 | 70 61 63 6b 61 67 65 20 | of the |package |
|00003570| 28 66 6f 72 20 65 78 61 | 6d 70 6c 65 2c 20 60 31 |(for exa|mple, `1|
|00003580| 39 2e 32 38 27 29 2e 0a | 76 20 3d 20 32 2e 36 34 |9.28')..|v = 2.64|
|00003590| 0a 23 20 54 68 65 20 44 | 65 62 69 61 6e 20 72 65 |.# The D|ebian re|
|000035a0| 76 69 73 69 6f 6e 20 6f | 66 20 74 68 65 20 70 61 |vision o|f the pa|
|000035b0| 63 6b 61 67 65 20 28 66 | 6f 72 20 65 78 61 6d 70 |ckage (f|or examp|
|000035c0| 6c 65 2c 20 60 32 27 29 | 2e 0a 64 20 3d 20 31 0a |le, `2')|..d = 1.|
|000035d0| 23 20 54 68 65 20 70 72 | 69 6f 72 69 74 79 20 6f |# The pr|iority o|
|000035e0| 66 20 74 68 69 73 20 72 | 65 6c 65 61 73 65 20 28 |f this r|elease (|
|000035f0| 66 6f 72 20 74 68 65 20 | 63 68 61 6e 67 65 73 20 |for the |changes |
|00003600| 66 69 6c 65 29 0a 70 72 | 69 6f 20 3d 20 6c 6f 77 |file).pr|io = low|
|00003610| 0a 23 20 54 68 65 20 61 | 72 63 68 69 74 65 63 74 |.# The a|rchitect|
|00003620| 75 72 65 20 6f 66 20 74 | 68 65 20 62 75 69 6c 64 |ure of t|he build|
|00003630| 0a 61 20 3d 20 24 28 73 | 68 65 6c 6c 20 64 70 6b |.a = $(s|hell dpk|
|00003640| 67 20 2d 2d 70 72 69 6e | 74 2d 61 72 63 68 69 74 |g --prin|t-archit|
|00003650| 65 63 74 75 72 65 29 0a | 0a 62 75 69 6c 64 3a 0a |ecture).|.build:.|
|00003660| 23 20 42 75 69 6c 64 73 | 20 74 68 65 20 62 69 6e |# Builds| the bin|
|00003670| 61 72 79 20 70 61 63 6b | 61 67 65 2e 0a 09 6d 61 |ary pack|age...ma|
|00003680| 6b 65 0a 09 74 6f 75 63 | 68 20 73 74 61 6d 70 2d |ke..touc|h stamp-|
|00003690| 62 75 69 6c 64 0a 0a 63 | 6c 65 61 6e 3a 0a 23 20 |build..c|lean:.# |
|000036a0| 55 6e 64 6f 65 73 20 74 | 68 65 20 65 66 66 65 63 |Undoes t|he effec|
|000036b0| 74 20 6f 66 20 60 6d 61 | 6b 65 20 2d 66 20 64 65 |t of `ma|ke -f de|
|000036c0| 62 69 61 6e 2e 72 75 6c | 65 73 20 62 75 69 6c 64 |bian.rul|es build|
|000036d0| 27 2e 0a 09 40 2d 69 66 | 20 5b 20 2d 64 20 64 65 |'...@-if| [ -d de|
|000036e0| 62 69 61 6e 2d 74 6d 70 | 20 5d 3b 20 74 68 65 6e |bian-tmp| ]; then|
|000036f0| 20 5c 0a 09 09 65 63 68 | 6f 20 22 45 6e 74 65 72 | \...ech|o "Enter|
|00003700| 20 74 68 65 20 72 6f 6f | 74 20 70 61 73 73 77 6f | the roo|t passwo|
|00003710| 72 64 20 74 6f 20 63 6c | 65 61 6e 20 75 70 20 74 |rd to cl|ean up t|
|00003720| 68 65 20 64 65 62 69 61 | 6e 2d 74 6d 70 20 64 69 |he debia|n-tmp di|
|00003730| 72 22 3b 5c 0a 09 09 73 | 75 20 2d 63 20 22 72 6d |r";\...s|u -c "rm|
|00003740| 20 2d 72 66 20 64 65 62 | 69 61 6e 2d 74 6d 70 22 | -rf deb|ian-tmp"|
|00003750| 3b 5c 0a 09 66 69 0a 09 | 6d 61 6b 65 20 63 6c 6f |;\..fi..|make clo|
|00003760| 62 62 65 72 0a 09 72 6d | 20 2d 66 20 73 74 61 6d |bber..rm| -f stam|
|00003770| 70 2d 62 75 69 6c 64 0a | 09 72 6d 20 2d 72 66 20 |p-build.|.rm -rf |
|00003780| 64 65 62 69 61 6e 2d 74 | 6d 70 0a 09 66 69 6e 64 |debian-t|mp..find|
|00003790| 20 2e 20 2d 6e 61 6d 65 | 20 27 2a 2e 62 61 6b 27 | . -name| '*.bak'|
|000037a0| 20 2d 6f 20 2d 6e 61 6d | 65 20 27 2a 7e 27 20 7c | -o -nam|e '*~' ||
|000037b0| 20 78 61 72 67 73 20 2d | 72 20 72 6d 20 2d 66 20 | xargs -|r rm -f |
|000037c0| 2d 2d 0a 0a 62 69 6e 61 | 72 79 3a 0a 23 20 4d 61 |--..bina|ry:.# Ma|
|000037d0| 6b 65 73 20 61 20 62 69 | 6e 61 72 79 20 70 61 63 |kes a bi|nary pac|
|000037e0| 6b 61 67 65 2e 0a 09 74 | 65 73 74 20 2d 66 20 73 |kage...t|est -f s|
|000037f0| 74 61 6d 70 2d 62 75 69 | 6c 64 20 7c 7c 20 6d 61 |tamp-bui|ld || ma|
|00003800| 6b 65 20 2d 66 20 64 65 | 62 69 61 6e 2e 72 75 6c |ke -f de|bian.rul|
|00003810| 65 73 20 62 75 69 6c 64 | 0a 09 40 2d 5b 20 22 60 |es build|..@-[ "`|
|00003820| 77 68 6f 61 6d 69 60 22 | 20 21 3d 20 72 6f 6f 74 |whoami`"| != root|
|00003830| 20 5d 20 26 26 20 5c 0a | 09 09 65 63 68 6f 20 22 | ] && \.|..echo "|
|00003840| 45 6e 74 65 72 20 74 68 | 65 20 72 6f 6f 74 20 70 |Enter th|e root p|
|00003850| 61 73 73 77 6f 72 64 20 | 74 6f 20 62 75 69 6c 64 |assword |to build|
|00003860| 20 74 68 65 20 2e 64 65 | 62 20 66 69 6c 65 22 0a | the .de|b file".|
|00003870| 09 40 73 75 20 2d 63 20 | 22 65 78 65 63 20 6d 61 |.@su -c |"exec ma|
|00003880| 6b 65 20 2d 66 20 64 65 | 62 69 61 6e 2e 72 75 6c |ke -f de|bian.rul|
|00003890| 65 73 20 62 69 6e 61 72 | 79 2d 72 6f 6f 74 22 0a |es binar|y-root".|
|000038a0| 0a 62 69 6e 61 72 79 2d | 72 6f 6f 74 3a 0a 23 20 |.binary-|root:.# |
|000038b0| 4d 61 6b 65 73 20 61 20 | 62 69 6e 61 72 79 20 70 |Makes a |binary p|
|000038c0| 61 63 6b 61 67 65 2e 0a | 09 69 6e 73 74 61 6c 6c |ackage..|.install|
|000038d0| 20 2d 64 20 2d 67 20 72 | 6f 6f 74 20 2d 6d 20 37 | -d -g r|oot -m 7|
|000038e0| 35 35 20 2d 6f 20 72 6f | 6f 74 20 64 65 62 69 61 |55 -o ro|ot debia|
|000038f0| 6e 2d 74 6d 70 0a 09 63 | 68 6d 6f 64 20 67 2d 73 |n-tmp..c|hmod g-s|
|00003900| 20 64 65 62 69 61 6e 2d | 74 6d 70 0a 09 69 6e 73 | debian-|tmp..ins|
|00003910| 74 61 6c 6c 20 2d 64 20 | 2d 67 20 72 6f 6f 74 20 |tall -d |-g root |
|00003920| 2d 6d 20 37 35 35 20 2d | 6f 20 72 6f 6f 74 20 64 |-m 755 -|o root d|
|00003930| 65 62 69 61 6e 2d 74 6d | 70 2f 44 45 42 49 41 4e |ebian-tm|p/DEBIAN|
|00003940| 0a 09 69 6e 73 74 61 6c | 6c 20 2d 64 20 2d 67 20 |..instal|l -d -g |
|00003950| 72 6f 6f 74 20 2d 6d 20 | 37 35 35 20 2d 6f 20 72 |root -m |755 -o r|
|00003960| 6f 6f 74 20 64 65 62 69 | 61 6e 2d 74 6d 70 2f 65 |oot debi|an-tmp/e|
|00003970| 74 63 0a 09 63 70 20 2d | 61 66 20 64 65 62 69 61 |tc..cp -|af debia|
|00003980| 6e 2f 65 74 63 2f 2a 20 | 64 65 62 69 61 6e 2d 74 |n/etc/* |debian-t|
|00003990| 6d 70 2f 65 74 63 0a 09 | 63 68 6d 6f 64 20 2d 52 |mp/etc..|chmod -R|
|000039a0| 20 67 2d 77 20 64 65 62 | 69 61 6e 2d 74 6d 70 2f | g-w deb|ian-tmp/|
|000039b0| 65 74 63 0a 09 63 68 6f | 77 6e 20 2d 52 20 72 6f |etc..cho|wn -R ro|
|000039c0| 6f 74 2e 72 6f 6f 74 20 | 64 65 62 69 61 6e 2d 74 |ot.root |debian-t|
|000039d0| 6d 70 2f 65 74 63 0a 09 | 69 6e 73 74 61 6c 6c 20 |mp/etc..|install |
|000039e0| 2d 64 20 2d 67 20 72 6f | 6f 74 20 2d 6d 20 37 35 |-d -g ro|ot -m 75|
|000039f0| 35 20 2d 6f 20 72 6f 6f | 74 20 64 65 62 69 61 6e |5 -o roo|t debian|
|00003a00| 2d 74 6d 70 2f 73 62 69 | 6e 0a 09 69 6e 73 74 61 |-tmp/sbi|n..insta|
|00003a10| 6c 6c 20 2d 64 20 2d 67 | 20 72 6f 6f 74 20 2d 6d |ll -d -g| root -m|
|00003a20| 20 37 35 35 20 2d 6f 20 | 72 6f 6f 74 20 64 65 62 | 755 -o |root deb|
|00003a30| 69 61 6e 2d 74 6d 70 2f | 75 73 72 2f 62 69 6e 0a |ian-tmp/|usr/bin.|
|00003a40| 09 69 6e 73 74 61 6c 6c | 20 2d 64 20 2d 67 20 72 |.install| -d -g r|
|00003a50| 6f 6f 74 20 2d 6d 20 37 | 35 35 20 2d 6f 20 72 6f |oot -m 7|55 -o ro|
|00003a60| 6f 74 20 64 65 62 69 61 | 6e 2d 74 6d 70 2f 75 73 |ot debia|n-tmp/us|
|00003a70| 72 2f 6d 61 6e 2f 6d 61 | 6e 7b 31 2c 35 2c 38 7d |r/man/ma|n{1,5,8}|
|00003a80| 0a 09 6d 61 6b 65 20 52 | 4f 4f 54 3d 64 65 62 69 |..make R|OOT=debi|
|00003a90| 61 6e 2d 74 6d 70 20 69 | 6e 73 74 61 6c 6c 0a 09 |an-tmp i|nstall..|
|00003aa0| 69 6e 73 74 61 6c 6c 20 | 2d 67 20 72 6f 6f 74 20 |install |-g root |
|00003ab0| 2d 6d 20 36 34 34 20 64 | 65 62 69 61 6e 2f 72 63 |-m 644 d|ebian/rc|
|00003ac0| 2e 62 6f 6f 74 2e 35 20 | 64 65 62 69 61 6e 2d 74 |.boot.5 |debian-t|
|00003ad0| 6d 70 2f 75 73 72 2f 6d | 61 6e 2f 6d 61 6e 35 0a |mp/usr/m|an/man5.|
|00003ae0| 09 69 6e 73 74 61 6c 6c | 20 2d 67 20 72 6f 6f 74 |.install| -g root|
|00003af0| 20 2d 6d 20 36 34 34 20 | 64 65 62 69 61 6e 2f 72 | -m 644 |debian/r|
|00003b00| 63 2e 6c 6f 63 61 6c 2e | 35 20 64 65 62 69 61 6e |c.local.|5 debian|
|00003b10| 2d 74 6d 70 2f 75 73 72 | 2f 6d 61 6e 2f 6d 61 6e |-tmp/usr|/man/man|
|00003b20| 35 0a 09 23 20 43 4f 4d | 50 41 54 3a 20 66 6f 72 |5..# COM|PAT: for|
|00003b30| 20 73 79 73 76 69 6e 69 | 74 2d 32 2e 35 37 62 2d | sysvini|t-2.57b-|
|00003b40| 31 2e 20 54 61 6b 65 20 | 6f 75 74 20 6e 65 78 74 |1. Take |out next|
|00003b50| 20 79 65 61 72 2e 0a 09 | 69 6e 73 74 61 6c 6c 20 | year...|install |
|00003b60| 2d 64 20 2d 67 20 72 6f | 6f 74 20 2d 6d 20 37 35 |-d -g ro|ot -m 75|
|00003b70| 35 20 2d 6f 20 72 6f 6f | 74 20 64 65 62 69 61 6e |5 -o roo|t debian|
|00003b80| 2d 74 6d 70 2f 76 61 72 | 2f 6c 6f 67 0a 09 28 20 |-tmp/var|/log..( |
|00003b90| 63 64 20 64 65 62 69 61 | 6e 2d 74 6d 70 2f 76 61 |cd debia|n-tmp/va|
|00003ba0| 72 2f 6c 6f 67 3b 20 6c | 6e 20 2d 73 66 20 2f 65 |r/log; l|n -sf /e|
|00003bb0| 74 63 2f 69 6e 69 74 72 | 75 6e 6c 76 6c 20 69 6e |tc/initr|unlvl in|
|00003bc0| 69 74 72 75 6e 6c 76 6c | 20 29 0a 09 69 6e 73 74 |itrunlvl| )..inst|
|00003bd0| 61 6c 6c 20 2d 64 20 2d | 67 20 72 6f 6f 74 20 2d |all -d -|g root -|
|00003be0| 6d 20 37 35 35 20 2d 6f | 20 72 6f 6f 74 20 64 65 |m 755 -o| root de|
|00003bf0| 62 69 61 6e 2d 74 6d 70 | 2f 75 73 72 2f 64 6f 63 |bian-tmp|/usr/doc|
|00003c00| 2f 63 6f 70 79 72 69 67 | 68 74 0a 09 69 6e 73 74 |/copyrig|ht..inst|
|00003c10| 61 6c 6c 20 2d 67 20 72 | 6f 6f 74 20 2d 6d 20 36 |all -g r|oot -m 6|
|00003c20| 34 34 20 2d 6f 20 72 6f | 6f 74 20 64 65 62 69 61 |44 -o ro|ot debia|
|00003c30| 6e 2f 64 65 62 69 61 6e | 2e 52 45 41 44 4d 45 20 |n/debian|.README |
|00003c40| 5c 0a 09 20 20 64 65 62 | 69 61 6e 2d 74 6d 70 2f |\.. deb|ian-tmp/|
|00003c50| 75 73 72 2f 64 6f 63 2f | 63 6f 70 79 72 69 67 68 |usr/doc/|copyrigh|
|00003c60| 74 2f 24 28 70 29 0a 23 | 09 69 6e 73 74 61 6c 6c |t/$(p).#|.install|
|00003c70| 20 2d 64 20 2d 67 20 72 | 6f 6f 74 20 2d 6d 20 37 | -d -g r|oot -m 7|
|00003c80| 35 35 20 2d 6f 20 72 6f | 6f 74 20 64 65 62 69 61 |55 -o ro|ot debia|
|00003c90| 6e 2d 74 6d 70 2f 75 73 | 72 2f 64 6f 63 2f 65 78 |n-tmp/us|r/doc/ex|
|00003ca0| 61 6d 70 6c 65 73 2f 24 | 28 70 29 0a 23 09 63 70 |amples/$|(p).#.cp|
|00003cb0| 20 2d 61 20 65 74 63 2d | 73 79 73 76 20 65 74 63 | -a etc-|sysv etc|
|00003cc0| 20 64 65 62 69 61 6e 2d | 74 6d 70 2f 75 73 72 2f | debian-|tmp/usr/|
|00003cd0| 64 6f 63 2f 65 78 61 6d | 70 6c 65 73 2f 24 28 70 |doc/exam|ples/$(p|
|00003ce0| 29 0a 23 09 63 68 6d 6f | 64 20 2d 52 20 67 2d 77 |).#.chmo|d -R g-w|
|00003cf0| 20 64 65 62 69 61 6e 2d | 74 6d 70 2f 75 73 72 2f | debian-|tmp/usr/|
|00003d00| 64 6f 63 2f 65 78 61 6d | 70 6c 65 73 2f 24 28 70 |doc/exam|ples/$(p|
|00003d10| 29 0a 23 09 63 68 6f 77 | 6e 20 2d 52 20 72 6f 6f |).#.chow|n -R roo|
|00003d20| 74 2e 72 6f 6f 74 20 64 | 65 62 69 61 6e 2d 74 6d |t.root d|ebian-tm|
|00003d30| 70 2f 75 73 72 2f 64 6f | 63 2f 65 78 61 6d 70 6c |p/usr/do|c/exampl|
|00003d40| 65 73 2f 24 28 70 29 0a | 09 63 70 20 64 65 62 69 |es/$(p).|.cp debi|
|00003d50| 61 6e 2f 64 65 62 69 61 | 6e 2e 70 72 65 69 6e 73 |an/debia|n.preins|
|00003d60| 74 20 64 65 62 69 61 6e | 2d 74 6d 70 2f 44 45 42 |t debian|-tmp/DEB|
|00003d70| 49 41 4e 2f 70 72 65 69 | 6e 73 74 0a 09 63 70 20 |IAN/prei|nst..cp |
|00003d80| 64 65 62 69 61 6e 2f 64 | 65 62 69 61 6e 2e 70 6f |debian/d|ebian.po|
|00003d90| 73 74 69 6e 73 74 20 64 | 65 62 69 61 6e 2d 74 6d |stinst d|ebian-tm|
|00003da0| 70 2f 44 45 42 49 41 4e | 2f 70 6f 73 74 69 6e 73 |p/DEBIAN|/postins|
|00003db0| 74 0a 09 73 65 64 20 2d | 65 20 20 27 73 2f 3d 56 |t..sed -|e 's/=V|
|00003dc0| 2f 24 28 76 29 2d 24 28 | 64 29 2f 27 20 2d 65 20 |/$(v)-$(|d)/' -e |
|00003dd0| 27 73 2f 3d 41 2f 24 28 | 61 29 2f 27 20 5c 0a 09 |'s/=A/$(|a)/' \..|
|00003de0| 09 3c 20 64 65 62 69 61 | 6e 2f 64 65 62 69 61 6e |.< debia|n/debian|
|00003df0| 2e 63 6f 6e 74 72 6f 6c | 20 3e 20 64 65 62 69 61 |.control| > debia|
|00003e00| 6e 2d 74 6d 70 2f 44 45 | 42 49 41 4e 2f 63 6f 6e |n-tmp/DE|BIAN/con|
|00003e10| 74 72 6f 6c 0a 09 63 68 | 6d 6f 64 20 36 34 34 20 |trol..ch|mod 644 |
|00003e20| 64 65 62 69 61 6e 2d 74 | 6d 70 2f 44 45 42 49 41 |debian-t|mp/DEBIA|
|00003e30| 4e 2f 63 6f 6e 74 72 6f | 6c 0a 09 69 6e 73 74 61 |N/contro|l..insta|
|00003e40| 6c 6c 20 2d 67 20 72 6f | 6f 74 20 2d 6d 20 36 34 |ll -g ro|ot -m 64|
|00003e50| 34 20 2d 6f 20 72 6f 6f | 74 20 64 65 62 69 61 6e |4 -o roo|t debian|
|00003e60| 2f 64 65 62 69 61 6e 2e | 63 6f 6e 66 66 69 6c 65 |/debian.|conffile|
|00003e70| 73 20 5c 0a 09 20 20 64 | 65 62 69 61 6e 2d 74 6d |s \.. d|ebian-tm|
|00003e80| 70 2f 44 45 42 49 41 4e | 2f 63 6f 6e 66 66 69 6c |p/DEBIAN|/conffil|
|00003e90| 65 73 0a 09 64 70 6b 67 | 20 2d 2d 62 75 69 6c 64 |es..dpkg| --build|
|00003ea0| 20 64 65 62 69 61 6e 2d | 74 6d 70 0a 09 6d 76 20 | debian-|tmp..mv |
|00003eb0| 64 65 62 69 61 6e 2d 74 | 6d 70 2e 64 65 62 20 2e |debian-t|mp.deb .|
|00003ec0| 2e 2f 24 28 70 29 2d 24 | 28 76 29 2d 24 28 64 29 |./$(p)-$|(v)-$(d)|
|00003ed0| 2e 24 28 61 29 2e 64 65 | 62 0a 09 72 6d 20 2d 72 |.$(a).de|b..rm -r|
|00003ee0| 66 20 64 65 62 69 61 6e | 2d 74 6d 70 0a 0a 73 6f |f debian|-tmp..so|
|00003ef0| 75 72 63 65 3a 0a 23 20 | 4d 61 6b 65 73 20 61 20 |urce:.# |Makes a |
|00003f00| 73 6f 75 72 63 65 20 70 | 61 63 6b 61 67 65 2e 0a |source p|ackage..|
|00003f10| 09 2d 74 65 73 74 20 2d | 66 20 73 74 61 6d 70 2d |.-test -|f stamp-|
|00003f20| 62 75 69 6c 64 20 26 26 | 20 6d 61 6b 65 20 2d 66 |build &&| make -f|
|00003f30| 20 64 65 62 69 61 6e 2e | 72 75 6c 65 73 20 63 6c | debian.|rules cl|
|00003f40| 65 61 6e 0a 09 28 20 63 | 64 20 2e 2e 20 26 26 20 |ean..( c|d .. && |
|00003f50| 74 61 72 20 63 66 20 2d | 20 24 28 70 29 2d 24 28 |tar cf -| $(p)-$(|
|00003f60| 76 29 20 7c 20 67 7a 69 | 70 20 2d 39 66 20 3e 20 |v) | gzi|p -9f > |
|00003f70| 24 28 70 29 2d 24 28 76 | 29 2d 24 28 64 29 2e 74 |$(p)-$(v|)-$(d).t|
|00003f80| 61 72 2e 67 7a 20 29 0a | 0a 64 69 66 66 3a 0a 23 |ar.gz ).|.diff:.#|
|00003f90| 20 4d 61 6b 65 73 20 61 | 20 63 6f 6e 74 65 78 74 | Makes a| context|
|00003fa0| 20 64 69 66 66 2e 0a 09 | 40 65 63 68 6f 20 22 54 | diff...|@echo "T|
|00003fb0| 68 69 73 20 49 53 20 74 | 68 65 20 6f 72 69 67 69 |his IS t|he origi|
|00003fc0| 6e 61 6c 20 70 61 63 6b | 61 67 65 2e 22 0a 0a 64 |nal pack|age."..d|
|00003fd0| 69 73 74 3a 20 62 69 6e | 61 72 79 20 73 6f 75 72 |ist: bin|ary sour|
|00003fe0| 63 65 20 64 63 68 61 6e | 67 65 73 0a 23 20 50 72 |ce dchan|ges.# Pr|
|00003ff0| 65 70 61 72 65 73 20 74 | 68 65 20 70 61 63 6b 61 |epares t|he packa|
|00004000| 67 65 20 66 6f 72 20 64 | 69 73 74 72 69 62 75 74 |ge for d|istribut|
|00004010| 69 6f 6e 2e 0a 0a 64 63 | 68 61 6e 67 65 73 3a 0a |ion...dc|hanges:.|
|00004020| 23 20 55 70 64 61 74 65 | 73 20 74 68 65 20 64 65 |# Update|s the de|
|00004030| 62 69 61 6e 2e 64 63 68 | 61 6e 67 65 73 20 66 69 |bian.dch|anges fi|
|00004040| 6c 65 2e 0a 09 28 63 64 | 20 2e 2e 20 26 26 20 64 |le...(cd| .. && d|
|00004050| 63 68 61 6e 67 65 73 20 | 2d 6e 20 70 72 69 3d 24 |changes |-n pri=$|
|00004060| 28 70 72 69 6f 29 20 63 | 65 3d 24 28 70 29 2d 24 |(prio) c|e=$(p)-$|
|00004070| 28 76 29 2f 64 65 62 69 | 61 6e 2f 64 65 62 69 61 |(v)/debi|an/debia|
|00004080| 6e 2e 64 63 68 61 6e 67 | 65 73 20 5c 0a 09 09 24 |n.dchang|es \...$|
|00004090| 28 70 29 2d 24 28 76 29 | 2d 24 28 64 29 2e 24 28 |(p)-$(v)|-$(d).$(|
|000040a0| 61 29 2e 64 65 62 20 24 | 28 70 29 2d 24 28 76 29 |a).deb $|(p)-$(v)|
|000040b0| 2d 24 28 64 29 2e 74 61 | 72 2e 67 7a 29 0a 09 28 |-$(d).ta|r.gz)..(|
|000040c0| 20 63 64 20 2e 2e 20 3b | 20 63 68 6d 6f 64 20 36 | cd .. ;| chmod 6|
|000040d0| 34 34 20 24 28 70 29 2d | 24 28 76 29 2d 24 28 64 |44 $(p)-|$(v)-$(d|
|000040e0| 29 2e 63 68 61 6e 67 65 | 73 20 29 0a 0a 6f 72 69 |).change|s )..ori|
|000040f0| 67 3a 0a 23 20 50 72 65 | 70 61 72 65 73 20 74 68 |g:.# Pre|pares th|
|00004100| 65 20 6f 72 69 67 69 6e | 61 6c 20 70 61 63 6b 61 |e origin|al packa|
|00004110| 67 65 20 66 72 6f 6d 20 | 74 68 65 20 70 72 65 76 |ge from |the prev|
|00004120| 69 6f 75 73 0a 23 20 44 | 65 62 69 61 6e 20 72 65 |ious.# D|ebian re|
|00004130| 76 69 73 69 6f 6e 20 73 | 6f 75 72 63 65 20 70 61 |vision s|ource pa|
|00004140| 63 6b 61 67 65 20 61 6e | 64 20 63 6f 6e 74 65 78 |ckage an|d contex|
|00004150| 74 20 64 69 66 66 2e 0a | 09 40 65 63 68 6f 20 22 |t diff..|.@echo "|
|00004160| 54 68 69 73 20 49 53 20 | 74 68 65 20 6f 72 69 67 |This IS |the orig|
|00004170| 69 6e 61 6c 20 70 61 63 | 6b 61 67 65 2e 22 0a 00 |inal pac|kage."..|
|00004180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004200| 73 79 73 76 69 6e 69 74 | 2d 32 2e 36 34 2f 68 61 |sysvinit|-2.64/ha|
|00004210| 6c 74 2e 38 00 00 00 00 | 00 00 00 00 00 00 00 00 |lt.8....|........|
|00004220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004260| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 34 30 |....1006|44 . 40|
|00004270| 36 35 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |65 . |12 . |
|00004280| 20 20 20 33 30 30 35 20 | 20 36 31 36 30 32 36 35 | 3005 | 6160265|
|00004290| 31 36 34 20 20 31 33 33 | 37 37 00 20 30 00 00 00 |164 133|77. 0...|
|000042a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004300| 00 75 73 74 61 72 20 20 | 00 6d 69 71 75 65 6c 73 |.ustar |.miquels|
|00004310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004320| 00 00 00 00 00 00 00 00 | 00 73 74 61 66 66 00 00 |........|.staff..|
|00004330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004400| 2e 5c 22 7b 7b 7b 7d 7d | 7d 0a 2e 5c 22 7b 7b 7b |.\"{{{}}|}..\"{{{|
|00004410| 20 20 54 69 74 6c 65 0a | 2e 54 48 20 48 41 4c 54 | Title.|.TH HALT|
|00004420| 2c 52 45 42 4f 4f 54 20 | 38 20 22 44 65 63 65 6d |,REBOOT |8 "Decem|
|00004430| 62 65 72 20 31 30 2c 20 | 31 39 39 35 22 20 22 22 |ber 10, |1995" ""|
|00004440| 20 22 4c 69 6e 75 78 20 | 53 79 73 74 65 6d 20 41 | "Linux |System A|
|00004450| 64 6d 69 6e 69 73 74 72 | 61 74 6f 72 27 73 20 4d |dministr|ator's M|
|00004460| 61 6e 75 61 6c 22 0a 2e | 5c 22 7d 7d 7d 0a 2e 5c |anual"..|\"}}}..\|
|00004470| 22 7b 7b 7b 20 20 4e 61 | 6d 65 0a 2e 53 48 20 4e |"{{{ Na|me..SH N|
|00004480| 41 4d 45 0a 68 61 6c 74 | 2c 20 72 65 62 6f 6f 74 |AME.halt|, reboot|
|00004490| 20 5c 2d 20 73 74 6f 70 | 20 74 68 65 20 73 79 73 | \- stop| the sys|
|000044a0| 74 65 6d 2e 0a 2e 5c 22 | 7d 7d 7d 0a 2e 5c 22 7b |tem...\"|}}}..\"{|
|000044b0| 7b 7b 20 20 53 79 6e 6f | 70 73 69 73 0a 2e 53 48 |{{ Syno|psis..SH|
|000044c0| 20 53 59 4e 4f 50 53 49 | 53 0a 2e 42 20 2f 73 62 | SYNOPSI|S..B /sb|
|000044d0| 69 6e 2f 68 61 6c 74 0a | 2e 52 42 20 5b 20 5c 2d |in/halt.|.RB [ \-|
|000044e0| 6e 20 5d 0a 2e 52 42 20 | 5b 20 5c 2d 77 20 5d 0a |n ]..RB |[ \-w ].|
|000044f0| 2e 52 42 20 5b 20 5c 2d | 64 20 5d 0a 2e 52 42 20 |.RB [ \-|d ]..RB |
|00004500| 5b 20 5c 2d 66 20 5d 0a | 2e 62 72 0a 2e 42 20 2f |[ \-f ].|.br..B /|
|00004510| 73 62 69 6e 2f 72 65 62 | 6f 6f 74 0a 2e 52 42 20 |sbin/reb|oot..RB |
|00004520| 5b 20 5c 2d 6e 20 5d 0a | 2e 52 42 20 5b 20 5c 2d |[ \-n ].|.RB [ \-|
|00004530| 77 20 5d 0a 2e 52 42 20 | 5b 20 5c 2d 64 20 5d 0a |w ]..RB |[ \-d ].|
|00004540| 2e 52 42 20 5b 20 5c 2d | 66 20 5d 0a 2e 5c 22 7d |.RB [ \-|f ]..\"}|
|00004550| 7d 7d 0a 2e 5c 22 7b 7b | 7b 20 20 44 65 73 63 72 |}}..\"{{|{ Descr|
|00004560| 69 70 74 69 6f 6e 0a 2e | 53 48 20 44 45 53 43 52 |iption..|SH DESCR|
|00004570| 49 50 54 49 4f 4e 0a 5c | 66 42 48 61 6c 74 5c 66 |IPTION.\|fBHalt\f|
|00004580| 50 20 6e 6f 74 65 73 20 | 74 68 61 74 20 74 68 65 |P notes |that the|
|00004590| 20 73 79 73 74 65 6d 20 | 69 73 20 62 65 69 6e 67 | system |is being|
|000045a0| 20 62 72 6f 75 67 68 74 | 20 64 6f 77 6e 20 69 6e | brought| down in|
|000045b0| 20 74 68 65 20 66 69 6c | 65 0a 5c 66 42 2f 76 61 | the fil|e.\fB/va|
|000045c0| 72 2f 6c 6f 67 2f 77 74 | 6d 70 5c 66 50 2c 20 61 |r/log/wt|mp\fP, a|
|000045d0| 6e 64 20 74 68 65 6e 20 | 65 69 74 68 65 72 20 74 |nd then |either t|
|000045e0| 65 6c 6c 73 20 74 68 65 | 20 6b 65 72 6e 65 6c 20 |ells the| kernel |
|000045f0| 74 6f 20 68 61 6c 74 20 | 6f 72 0a 72 65 62 6f 6f |to halt |or.reboo|
|00004600| 74 20 74 68 65 20 73 79 | 73 74 65 6d 2e 20 49 66 |t the sy|stem. If|
|00004610| 20 5c 66 49 68 61 6c 74 | 5c 66 50 20 6f 72 20 5c | \fIhalt|\fP or \|
|00004620| 66 49 72 65 62 6f 6f 74 | 5c 66 50 20 69 73 20 63 |fIreboot|\fP is c|
|00004630| 61 6c 6c 65 64 20 77 68 | 65 6e 20 74 68 65 20 73 |alled wh|en the s|
|00004640| 79 73 74 65 6d 20 69 73 | 0a 5c 66 49 6e 6f 74 5c |ystem is|.\fInot\|
|00004650| 66 50 20 69 6e 20 72 75 | 6e 6c 65 76 65 6c 20 5c |fP in ru|nlevel \|
|00004660| 66 42 30 5c 66 50 20 6f | 72 20 5c 66 42 36 5c 66 |fB0\fP o|r \fB6\f|
|00004670| 50 2c 20 5c 66 49 73 68 | 75 74 64 6f 77 6e 28 38 |P, \fIsh|utdown(8|
|00004680| 29 5c 66 50 20 77 69 6c | 6c 20 62 65 0a 69 6e 76 |)\fP wil|l be.inv|
|00004690| 6f 6b 65 64 20 69 6e 73 | 74 65 61 64 20 28 77 69 |oked ins|tead (wi|
|000046a0| 74 68 20 74 68 65 20 66 | 6c 61 67 20 5c 66 42 2d |th the f|lag \fB-|
|000046b0| 68 5c 66 50 20 6f 72 20 | 5c 66 42 2d 72 5c 66 50 |h\fP or |\fB-r\fP|
|000046c0| 29 2e 0a 2e 5c 22 7d 7d | 7d 0a 2e 5c 22 7b 7b 7b |)...\"}}|}..\"{{{|
|000046d0| 20 20 4f 70 74 69 6f 6e | 73 0a 2e 53 48 20 4f 50 | Option|s..SH OP|
|000046e0| 54 49 4f 4e 53 0a 2e 49 | 50 20 5c 66 42 5c 2d 6e |TIONS..I|P \fB\-n|
|000046f0| 5c 66 50 0a 44 6f 6e 27 | 74 20 73 79 6e 63 20 62 |\fP.Don'|t sync b|
|00004700| 65 66 6f 72 65 20 72 65 | 62 6f 6f 74 20 6f 72 20 |efore re|boot or |
|00004710| 68 61 6c 74 2e 0a 2e 49 | 50 20 5c 66 42 5c 2d 77 |halt...I|P \fB\-w|
|00004720| 5c 66 50 0a 44 6f 6e 27 | 74 20 61 63 74 75 61 6c |\fP.Don'|t actual|
|00004730| 6c 79 20 72 65 62 6f 6f | 74 20 6f 72 20 68 61 6c |ly reboo|t or hal|
|00004740| 74 20 62 75 74 20 6f 6e | 6c 79 20 77 72 69 74 65 |t but on|ly write|
|00004750| 20 74 68 65 20 77 74 6d | 70 20 72 65 63 6f 72 64 | the wtm|p record|
|00004760| 0a 28 69 6e 20 74 68 65 | 20 5c 66 42 2f 76 61 72 |.(in the| \fB/var|
|00004770| 2f 6c 6f 67 2f 77 74 6d | 70 5c 66 50 20 66 69 6c |/log/wtm|p\fP fil|
|00004780| 65 29 2e 0a 2e 49 50 20 | 5c 66 42 5c 2d 64 5c 66 |e)...IP |\fB\-d\f|
|00004790| 50 0a 44 6f 6e 27 74 20 | 77 72 69 74 65 20 74 68 |P.Don't |write th|
|000047a0| 65 20 77 74 6d 70 20 72 | 65 63 6f 72 64 2e 20 54 |e wtmp r|ecord. T|
|000047b0| 68 65 20 5c 66 42 5c 2d | 6e 5c 66 50 20 66 6c 61 |he \fB\-|n\fP fla|
|000047c0| 67 20 69 6d 70 6c 69 65 | 73 20 5c 66 42 5c 2d 64 |g implie|s \fB\-d|
|000047d0| 5c 66 50 2e 0a 2e 49 50 | 20 5c 66 42 5c 2d 66 5c |\fP...IP| \fB\-f\|
|000047e0| 66 50 0a 46 6f 72 63 65 | 20 68 61 6c 74 20 6f 72 |fP.Force| halt or|
|000047f0| 20 72 65 62 6f 6f 74 2c | 20 64 6f 6e 27 74 20 63 | reboot,| don't c|
|00004800| 61 6c 6c 20 73 68 75 74 | 64 6f 77 6e 2e 0a 2e 5c |all shut|down...\|
|00004810| 22 7d 7d 7d 0a 2e 5c 22 | 7b 7b 7b 20 20 44 69 61 |"}}}..\"|{{{ Dia|
|00004820| 67 6e 6f 73 74 69 63 73 | 0a 2e 53 48 20 44 49 41 |gnostics|..SH DIA|
|00004830| 47 4e 4f 53 54 49 43 53 | 0a 49 66 20 79 6f 75 27 |GNOSTICS|.If you'|
|00004840| 72 65 20 6e 6f 74 20 74 | 68 65 20 73 75 70 65 72 |re not t|he super|
|00004850| 75 73 65 72 2c 20 79 6f | 75 20 77 69 6c 6c 20 67 |user, yo|u will g|
|00004860| 65 74 20 74 68 65 20 6d | 65 73 73 61 67 65 20 60 |et the m|essage `|
|00004870| 6d 75 73 74 20 62 65 20 | 73 75 70 65 72 75 73 65 |must be |superuse|
|00004880| 72 27 2e 0a 2e 5c 22 7d | 7d 7d 0a 2e 5c 22 7b 7b |r'...\"}|}}..\"{{|
|00004890| 7b 20 20 4e 6f 74 65 73 | 0a 2e 53 48 20 4e 4f 54 |{ Notes|..SH NOT|
|000048a0| 45 53 0a 55 6e 64 65 72 | 20 70 72 65 76 69 6f 75 |ES.Under| previou|
|000048b0| 73 20 5c 66 42 73 79 73 | 76 69 6e 69 74 5c 66 50 |s \fBsys|vinit\fP|
|000048c0| 20 72 65 6c 65 61 73 65 | 73 2c 20 5c 66 49 72 65 | release|s, \fIre|
|000048d0| 62 6f 6f 74 5c 66 50 20 | 61 6e 64 20 5c 66 49 68 |boot\fP |and \fIh|
|000048e0| 61 6c 74 5c 66 50 20 73 | 68 6f 75 6c 64 0a 6e 65 |alt\fP s|hould.ne|
|000048f0| 76 65 72 20 62 65 20 63 | 61 6c 6c 65 64 20 64 69 |ver be c|alled di|
|00004900| 72 65 63 74 6c 79 2e 20 | 46 72 6f 6d 20 74 68 69 |rectly. |From thi|
|00004910| 73 20 72 65 6c 65 61 73 | 65 20 6f 6e 20 5c 66 49 |s releas|e on \fI|
|00004920| 68 61 6c 74 5c 66 50 20 | 61 6e 64 20 5c 66 49 72 |halt\fP |and \fIr|
|00004930| 65 62 6f 6f 74 5c 66 50 | 0a 69 6e 76 6f 6b 65 20 |eboot\fP|.invoke |
|00004940| 5c 66 49 73 68 75 74 64 | 6f 77 6e 5c 66 50 20 69 |\fIshutd|own\fP i|
|00004950| 66 20 74 68 65 20 73 79 | 73 74 65 6d 20 69 73 20 |f the sy|stem is |
|00004960| 69 6e 20 72 75 6e 6c 65 | 76 65 6c 20 31 2d 35 2e |in runle|vel 1-5.|
|00004970| 0a 2e 50 50 0a 2e 5c 22 | 7d 7d 7d 0a 2e 5c 22 7b |..PP..\"|}}}..\"{|
|00004980| 7b 7b 20 20 41 75 74 68 | 6f 72 0a 2e 53 48 20 41 |{{ Auth|or..SH A|
|00004990| 55 54 48 4f 52 0a 4d 69 | 71 75 65 6c 20 76 61 6e |UTHOR.Mi|quel van|
|000049a0| 20 53 6d 6f 6f 72 65 6e | 62 75 72 67 2c 20 6d 69 | Smooren|burg, mi|
|000049b0| 71 75 65 6c 73 40 63 69 | 73 74 72 6f 6e 2e 6e 6c |quels@ci|stron.nl|
|000049c0| 0a 2e 5c 22 7d 7d 7d 0a | 2e 5c 22 7b 7b 7b 20 20 |..\"}}}.|.\"{{{ |
|000049d0| 53 65 65 20 61 6c 73 6f | 0a 2e 53 48 20 22 53 45 |See also|..SH "SE|
|000049e0| 45 20 41 4c 53 4f 22 0a | 73 68 75 74 64 6f 77 6e |E ALSO".|shutdown|
|000049f0| 28 38 29 2c 20 69 6e 69 | 74 28 31 29 2e 0a 2e 5c |(8), ini|t(1)...\|
|00004a00| 22 7d 7d 7d 0a 00 00 00 | 00 00 00 00 00 00 00 00 |"}}}....|........|
|00004a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c00| 73 79 73 76 69 6e 69 74 | 2d 32 2e 36 34 2f 68 61 |sysvinit|-2.64/ha|
|00004c10| 6c 74 2e 63 00 00 00 00 | 00 00 00 00 00 00 00 00 |lt.c....|........|
|00004c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c60| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 34 30 |....1006|44 . 40|
|00004c70| 36 35 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |65 . |12 . |
|00004c80| 20 20 31 32 35 30 30 20 | 20 36 31 36 36 33 31 32 | 12500 | 6166312|
|00004c90| 33 36 31 20 20 31 33 34 | 37 30 00 20 30 00 00 00 |361 134|70. 0...|
|00004ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d00| 00 75 73 74 61 72 20 20 | 00 6d 69 71 75 65 6c 73 |.ustar |.miquels|
|00004d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d20| 00 00 00 00 00 00 00 00 | 00 73 74 61 66 66 00 00 |........|.staff..|
|00004d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e00| 2f 2a 0a 20 2a 20 48 61 | 6c 74 09 09 53 74 6f 70 |/*. * Ha|lt..Stop|
|00004e10| 20 74 68 65 20 73 79 73 | 74 65 6d 20 72 75 6e 6e | the sys|tem runn|
|00004e20| 69 6e 67 2e 0a 20 2a 09 | 09 49 74 20 72 65 2d 65 |ing.. *.|.It re-e|
|00004e30| 6e 61 62 6c 65 73 20 43 | 54 52 4c 2d 41 4c 54 2d |nables C|TRL-ALT-|
|00004e40| 44 45 4c 2c 20 73 6f 20 | 74 68 61 74 20 61 20 68 |DEL, so |that a h|
|00004e50| 61 72 64 20 72 65 62 6f | 6f 74 20 63 61 6e 0a 20 |ard rebo|ot can. |
|00004e60| 2a 09 09 62 65 20 64 6f | 6e 65 2e 20 49 66 20 63 |*..be do|ne. If c|
|00004e70| 61 6c 6c 65 64 20 61 73 | 20 72 65 62 6f 6f 74 2c |alled as| reboot,|
|00004e80| 20 69 74 20 77 69 6c 6c | 20 72 65 62 6f 6f 74 20 | it will| reboot |
|00004e90| 74 68 65 20 73 79 73 74 | 65 6d 2e 0a 20 2a 0a 20 |the syst|em.. *. |
|00004ea0| 2a 09 09 49 66 20 74 68 | 65 20 73 79 73 74 65 6d |*..If th|e system|
|00004eb0| 20 69 73 20 6e 6f 74 20 | 69 6e 20 72 75 6e 6c 65 | is not |in runle|
|00004ec0| 76 65 6c 20 30 20 6f 72 | 20 36 2c 20 68 61 6c 74 |vel 0 or| 6, halt|
|00004ed0| 20 77 69 6c 6c 20 6a 75 | 73 74 0a 20 2a 09 09 65 | will ju|st. *..e|
|00004ee0| 78 65 63 75 74 65 20 61 | 20 22 73 68 75 74 64 6f |xecute a| "shutdo|
|00004ef0| 77 6e 20 2d 68 22 20 74 | 6f 20 68 61 6c 74 20 74 |wn -h" t|o halt t|
|00004f00| 68 65 20 73 79 73 74 65 | 6d 2c 20 61 6e 64 20 72 |he syste|m, and r|
|00004f10| 65 62 6f 6f 74 20 77 69 | 6c 6c 0a 20 2a 09 09 65 |eboot wi|ll. *..e|
|00004f20| 78 65 63 75 74 65 20 61 | 6e 20 22 73 68 75 74 64 |xecute a|n "shutd|
|00004f30| 6f 77 6e 20 2d 72 22 2e | 20 54 68 69 73 20 69 73 |own -r".| This is|
|00004f40| 20 66 6f 72 20 63 6f 6d | 70 61 74 69 62 69 6c 69 | for com|patibili|
|00004f50| 74 79 20 77 69 74 68 0a | 20 2a 09 09 73 79 73 76 |ty with.| *..sysv|
|00004f60| 69 6e 69 74 20 32 2e 34 | 2e 0a 20 2a 0a 20 2a 20 |init 2.4|.. *. * |
|00004f70| 55 73 61 67 65 3a 09 68 | 61 6c 74 20 5b 2d 6e 5d |Usage:.h|alt [-n]|
|00004f80| 20 5b 2d 77 5d 20 5b 2d | 64 5d 20 5b 2d 66 5d 0a | [-w] [-|d] [-f].|
|00004f90| 20 2a 09 09 2d 6e 3a 20 | 64 6f 6e 27 74 20 73 79 | *..-n: |don't sy|
|00004fa0| 6e 63 20 62 65 66 6f 72 | 65 20 68 61 6c 74 69 6e |nc befor|e haltin|
|00004fb0| 67 20 74 68 65 20 73 79 | 73 74 65 6d 0a 20 2a 09 |g the sy|stem. *.|
|00004fc0| 09 2d 77 3a 20 6f 6e 6c | 79 20 77 72 69 74 65 20 |.-w: onl|y write |
|00004fd0| 61 20 77 74 6d 70 20 72 | 65 62 6f 6f 74 20 72 65 |a wtmp r|eboot re|
|00004fe0| 63 6f 72 64 20 61 6e 64 | 20 65 78 69 74 2e 0a 20 |cord and| exit.. |
|00004ff0| 2a 09 09 2d 64 3a 20 64 | 6f 6e 27 74 20 77 72 69 |*..-d: d|on't wri|
|00005000| 74 65 20 61 20 77 74 6d | 70 20 72 65 63 6f 72 64 |te a wtm|p record|
|00005010| 2e 0a 20 2a 09 09 2d 66 | 3a 20 66 6f 72 63 65 20 |.. *..-f|: force |
|00005020| 68 61 6c 74 2f 72 65 62 | 6f 6f 74 2c 20 64 6f 6e |halt/reb|oot, don|
|00005030| 27 74 20 63 61 6c 6c 20 | 73 68 75 74 64 6f 77 6e |'t call |shutdown|
|00005040| 2e 0a 20 2a 0a 20 2a 09 | 09 52 65 62 6f 6f 74 20 |.. *. *.|.Reboot |
|00005050| 61 6e 64 20 68 61 6c 74 | 20 61 72 65 20 62 6f 74 |and halt| are bot|
|00005060| 68 20 74 68 69 73 20 70 | 72 6f 67 72 61 6d 2e 20 |h this p|rogram. |
|00005070| 52 65 62 6f 6f 74 0a 20 | 2a 09 09 69 73 20 6a 75 |Reboot. |*..is ju|
|00005080| 73 74 20 61 20 6c 69 6e | 6b 20 74 6f 20 68 61 6c |st a lin|k to hal|
|00005090| 74 2e 0a 20 2a 0a 20 2a | 20 41 75 74 68 6f 72 3a |t.. *. *| Author:|
|000050a0| 09 4d 69 71 75 65 6c 20 | 76 61 6e 20 53 6d 6f 6f |.Miquel |van Smoo|
|000050b0| 72 65 6e 62 75 72 67 2c | 20 6d 69 71 75 65 6c 73 |renburg,| miquels|
|000050c0| 40 64 72 69 6e 6b 65 6c | 2e 63 69 73 74 72 6f 6e |@drinkel|.cistron|
|000050d0| 2e 6e 6c 0a 20 2a 0a 20 | 2a 20 56 65 72 73 69 6f |.nl. *. |* Versio|
|000050e0| 6e 3a 09 32 2e 31 2c 20 | 20 31 36 2d 46 65 62 2d |n:.2.1, | 16-Feb-|
|000050f0| 31 39 39 36 0a 20 2a 0a | 20 2a 09 09 54 68 69 73 |1996. *.| *..This|
|00005100| 20 66 69 6c 65 20 69 73 | 20 70 61 72 74 20 6f 66 | file is| part of|
|00005110| 20 74 68 65 20 73 79 73 | 76 69 6e 69 74 20 73 75 | the sys|vinit su|
|00005120| 69 74 65 2c 0a 20 2a 09 | 09 43 6f 70 79 72 69 67 |ite,. *.|.Copyrig|
|00005130| 68 74 20 31 39 39 31 2d | 31 39 39 36 20 4d 69 71 |ht 1991-|1996 Miq|
|00005140| 75 65 6c 20 76 61 6e 20 | 53 6d 6f 6f 72 65 6e 62 |uel van |Smoorenb|
|00005150| 75 72 67 2e 0a 20 2a 0a | 20 2a 09 09 54 68 69 73 |urg.. *.| *..This|
|00005160| 20 70 72 6f 67 72 61 6d | 20 69 73 20 66 72 65 65 | program| is free|
|00005170| 20 73 6f 66 74 77 61 72 | 65 3b 20 79 6f 75 20 63 | softwar|e; you c|
|00005180| 61 6e 20 72 65 64 69 73 | 74 72 69 62 75 74 65 20 |an redis|tribute |
|00005190| 69 74 20 61 6e 64 2f 6f | 72 0a 20 2a 09 09 6d 6f |it and/o|r. *..mo|
|000051a0| 64 69 66 79 20 69 74 20 | 75 6e 64 65 72 20 74 68 |dify it |under th|
|000051b0| 65 20 74 65 72 6d 73 20 | 6f 66 20 74 68 65 20 47 |e terms |of the G|
|000051c0| 4e 55 20 47 65 6e 65 72 | 61 6c 20 50 75 62 6c 69 |NU Gener|al Publi|
|000051d0| 63 20 4c 69 63 65 6e 73 | 65 0a 20 2a 09 09 61 73 |c Licens|e. *..as|
|000051e0| 20 70 75 62 6c 69 73 68 | 65 64 20 62 79 20 74 68 | publish|ed by th|
|000051f0| 65 20 46 72 65 65 20 53 | 6f 66 74 77 61 72 65 20 |e Free S|oftware |
|00005200| 46 6f 75 6e 64 61 74 69 | 6f 6e 3b 20 65 69 74 68 |Foundati|on; eith|
|00005210| 65 72 20 76 65 72 73 69 | 6f 6e 0a 20 2a 09 09 32 |er versi|on. *..2|
|00005220| 20 6f 66 20 74 68 65 20 | 4c 69 63 65 6e 73 65 2c | of the |License,|
|00005230| 20 6f 72 20 28 61 74 20 | 79 6f 75 72 20 6f 70 74 | or (at |your opt|
|00005240| 69 6f 6e 29 20 61 6e 79 | 20 6c 61 74 65 72 20 76 |ion) any| later v|
|00005250| 65 72 73 69 6f 6e 2e 0a | 20 2a 2f 0a 0a 23 69 6e |ersion..| */..#in|
|00005260| 63 6c 75 64 65 20 3c 73 | 79 73 2f 74 79 70 65 73 |clude <s|ys/types|
|00005270| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 79 |.h>.#inc|lude <sy|
|00005280| 73 2f 73 74 61 74 2e 68 | 3e 0a 23 69 6e 63 6c 75 |s/stat.h|>.#inclu|
|00005290| 64 65 20 3c 73 79 73 2f | 70 61 72 61 6d 2e 68 3e |de <sys/|param.h>|
|000052a0| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 73 74 64 6c 69 |.#includ|e <stdli|
|000052b0| 62 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 75 |b.h>.#in|clude <u|
|000052c0| 74 6d 70 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |tmp.h>.#|include |
|000052d0| 3c 66 63 6e 74 6c 2e 68 | 3e 0a 23 69 6e 63 6c 75 |<fcntl.h|>.#inclu|
|000052e0| 64 65 20 3c 73 74 72 69 | 6e 67 2e 68 3e 0a 23 69 |de <stri|ng.h>.#i|
|000052f0| 6e 63 6c 75 64 65 20 3c | 75 6e 69 73 74 64 2e 68 |nclude <|unistd.h|
|00005300| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |>.#inclu|de <sys/|
|00005310| 74 69 6d 65 73 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |times.h>|.#includ|
|00005320| 65 20 3c 74 69 6d 65 2e | 68 3e 0a 23 69 6e 63 6c |e <time.|h>.#incl|
|00005330| 75 64 65 20 3c 73 69 67 | 6e 61 6c 2e 68 3e 0a 23 |ude <sig|nal.h>.#|
|00005340| 69 6e 63 6c 75 64 65 20 | 3c 73 74 64 69 6f 2e 68 |include |<stdio.h|
|00005350| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 67 65 74 6f |>.#inclu|de <geto|
|00005360| 70 74 2e 68 3e 0a 0a 63 | 68 61 72 20 2a 56 65 72 |pt.h>..c|har *Ver|
|00005370| 73 69 6f 6e 20 3d 20 22 | 40 28 23 29 68 61 6c 74 |sion = "|@(#)halt|
|00005380| 20 32 2e 31 20 31 36 2d | 46 65 62 2d 31 39 39 36 | 2.1 16-|Feb-1996|
|00005390| 20 4d 76 53 22 3b 0a 63 | 68 61 72 20 2a 70 72 6f | MvS";.c|har *pro|
|000053a0| 67 6e 61 6d 65 3b 0a 0a | 23 64 65 66 69 6e 65 20 |gname;..|#define |
|000053b0| 43 4f 4d 50 41 54 49 42 | 4c 45 20 31 09 20 20 2f |COMPATIB|LE 1. /|
|000053c0| 2a 20 46 6f 72 20 63 6f | 6d 70 61 74 69 62 69 6c |* For co|mpatibil|
|000053d0| 69 74 79 20 77 69 74 68 | 20 73 79 73 76 69 6e 69 |ity with| sysvini|
|000053e0| 74 20 32 2e 34 20 2a 2f | 0a 23 64 65 66 69 6e 65 |t 2.4 */|.#define|
|000053f0| 20 4b 45 52 4e 45 4c 5f | 4d 4f 4e 49 54 4f 52 09 | KERNEL_|MONITOR.|
|00005400| 31 20 2f 2a 20 49 66 20 | 68 61 6c 74 28 29 20 70 |1 /* If |halt() p|
|00005410| 75 74 73 20 79 6f 75 20 | 69 6e 74 6f 20 74 68 65 |uts you |into the|
|00005420| 20 6b 65 72 6e 65 6c 20 | 6d 6f 6e 69 74 6f 72 2e | kernel |monitor.|
|00005430| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 20 52 55 4e 4c | */.#def|ine RUNL|
|00005440| 56 4c 5f 50 49 43 4b 59 | 09 30 20 2f 2a 20 42 65 |VL_PICKY|.0 /* Be|
|00005450| 20 70 69 63 6b 79 20 61 | 62 6f 75 74 20 74 68 65 | picky a|bout the|
|00005460| 20 72 75 6e 6c 65 76 65 | 6c 20 2a 2f 0a 0a 2f 2a | runleve|l */../*|
|00005470| 0a 20 2a 20 53 65 6e 64 | 20 75 73 61 67 65 20 6d |. * Send| usage m|
|00005480| 65 73 73 61 67 65 2e 0a | 20 2a 2f 0a 76 6f 69 64 |essage..| */.void|
|00005490| 20 75 73 61 67 65 28 29 | 0a 7b 0a 20 20 66 70 72 | usage()|.{. fpr|
|000054a0| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 20 22 75 73 |intf(std|err, "us|
|000054b0| 61 67 65 3a 20 25 73 20 | 5b 2d 6e 5d 20 5b 2d 77 |age: %s |[-n] [-w|
|000054c0| 5d 20 5b 2d 64 5d 20 5b | 2d 66 5d 5c 6e 22 2c 20 |] [-d] [|-f]\n", |
|000054d0| 70 72 6f 67 6e 61 6d 65 | 29 3b 0a 20 20 65 78 69 |progname|);. exi|
|000054e0| 74 28 31 29 3b 0a 7d 0a | 0a 23 69 66 20 43 4f 4d |t(1);.}.|.#if COM|
|000054f0| 50 41 54 49 42 4c 45 0a | 2f 2a 20 53 65 65 20 69 |PATIBLE.|/* See i|
|00005500| 66 20 77 65 20 77 65 72 | 65 20 73 74 61 72 74 65 |f we wer|e starte|
|00005510| 64 20 64 69 72 65 63 74 | 6c 79 20 66 72 6f 6d 20 |d direct|ly from |
|00005520| 69 6e 69 74 2e 20 2a 2f | 0a 0a 2f 2a 20 47 65 74 |init. */|../* Get|
|00005530| 20 74 68 65 20 72 75 6e | 6c 65 76 65 6c 20 66 72 | the run|level fr|
|00005540| 6f 6d 20 2f 76 61 72 2f | 72 75 6e 2f 75 74 6d 70 |om /var/|run/utmp|
|00005550| 2e 20 2a 2f 0a 69 6e 74 | 20 67 65 74 5f 72 75 6e |. */.int| get_run|
|00005560| 6c 65 76 65 6c 28 29 0a | 7b 0a 20 20 46 49 4c 45 |level().|{. FILE|
|00005570| 20 2a 66 70 3b 0a 20 20 | 73 74 72 75 63 74 20 75 | *fp;. |struct u|
|00005580| 74 6d 70 20 75 74 3b 0a | 20 20 63 68 61 72 20 2a |tmp ut;.| char *|
|00005590| 72 3b 0a 23 69 66 20 52 | 55 4e 4c 56 4c 5f 50 49 |r;.#if R|UNLVL_PI|
|000055a0| 43 4b 59 0a 20 20 74 69 | 6d 65 5f 74 20 62 6f 6f |CKY. ti|me_t boo|
|000055b0| 74 74 69 6d 65 3b 0a 23 | 65 6e 64 69 66 0a 0a 20 |ttime;.#|endif.. |
|000055c0| 20 2f 2a 20 46 69 72 73 | 74 20 73 65 65 20 69 66 | /* Firs|t see if|
|000055d0| 20 77 65 20 77 65 72 65 | 20 73 74 61 72 74 65 64 | we were| started|
|000055e0| 20 64 69 72 65 63 74 6c | 79 20 66 72 6f 6d 20 69 | directl|y from i|
|000055f0| 6e 69 74 2e 20 2a 2f 0a | 20 20 69 66 20 28 67 65 |nit. */.| if (ge|
|00005600| 74 65 6e 76 28 22 49 4e | 49 54 5f 56 45 52 53 49 |tenv("IN|IT_VERSI|
|00005610| 4f 4e 22 29 20 26 26 20 | 28 72 20 3d 20 67 65 74 |ON") && |(r = get|
|00005620| 65 6e 76 28 22 52 55 4e | 4c 45 56 45 4c 22 29 29 |env("RUN|LEVEL"))|
|00005630| 20 21 3d 20 4e 55 4c 4c | 29 0a 09 72 65 74 75 72 | != NULL|)..retur|
|00005640| 6e 28 2a 72 29 3b 0a 0a | 20 20 2f 2a 20 48 6d 6d |n(*r);..| /* Hmm|
|00005650| 2c 20 66 61 69 6c 65 64 | 20 2d 20 72 65 61 64 20 |, failed| - read |
|00005660| 72 75 6e 6c 65 76 65 6c | 20 66 72 6f 6d 20 2f 76 |runlevel| from /v|
|00005670| 61 72 2f 72 75 6e 2f 75 | 74 6d 70 2e 2e 20 2a 2f |ar/run/u|tmp.. */|
|00005680| 0a 0a 23 69 66 20 52 55 | 4e 4c 56 4c 5f 50 49 43 |..#if RU|NLVL_PIC|
|00005690| 4b 59 0a 20 20 2f 2a 20 | 47 65 74 20 62 6f 6f 74 |KY. /* |Get boot|
|000056a0| 74 69 6d 65 20 66 72 6f | 6d 20 74 68 65 20 6b 65 |time fro|m the ke|
|000056b0| 72 6e 65 6c 2e 20 2a 2f | 0a 20 20 74 69 6d 65 28 |rnel. */|. time(|
|000056c0| 26 62 6f 6f 74 74 69 6d | 65 29 3b 0a 20 20 62 6f |&boottim|e);. bo|
|000056d0| 6f 74 74 69 6d 65 20 2d | 3d 20 28 74 69 6d 65 73 |ottime -|= (times|
|000056e0| 28 4e 55 4c 4c 29 20 2f | 20 48 5a 29 3b 0a 23 65 |(NULL) /| HZ);.#e|
|000056f0| 6e 64 69 66 0a 0a 20 20 | 2f 2a 20 46 69 6e 64 20 |ndif.. |/* Find |
|00005700| 72 75 6e 6c 65 76 65 6c | 20 69 6e 20 75 74 6d 70 |runlevel| in utmp|
|00005710| 2c 20 2a 2f 0a 20 20 69 | 66 20 28 28 66 70 20 3d |, */. i|f ((fp =|
|00005720| 20 66 6f 70 65 6e 28 55 | 54 4d 50 5f 46 49 4c 45 | fopen(U|TMP_FILE|
|00005730| 2c 20 22 72 22 29 29 20 | 21 3d 20 4e 55 4c 4c 29 |, "r")) |!= NULL)|
|00005740| 20 7b 0a 09 77 68 69 6c | 65 20 28 66 72 65 61 64 | {..whil|e (fread|
|00005750| 28 26 75 74 2c 20 73 69 | 7a 65 6f 66 28 73 74 72 |(&ut, si|zeof(str|
|00005760| 75 63 74 20 75 74 6d 70 | 29 2c 20 31 2c 20 66 70 |uct utmp|), 1, fp|
|00005770| 29 20 3d 3d 20 31 29 0a | 23 69 66 20 52 55 4e 4c |) == 1).|#if RUNL|
|00005780| 56 4c 5f 50 49 43 4b 59 | 0a 09 09 2f 2a 20 4f 6e |VL_PICKY|.../* On|
|00005790| 6c 79 20 61 63 63 65 70 | 74 20 76 61 6c 75 65 20 |ly accep|t value |
|000057a0| 69 66 20 69 74 27 73 20 | 66 72 6f 6d 20 61 66 74 |if it's |from aft|
|000057b0| 65 72 20 62 6f 6f 74 74 | 69 6d 65 2e 20 2a 2f 0a |er boott|ime. */.|
|000057c0| 09 09 69 66 20 28 75 74 | 2e 75 74 5f 74 79 70 65 |..if (ut|.ut_type|
|000057d0| 20 3d 3d 20 52 55 4e 5f | 4c 56 4c 20 26 26 20 75 | == RUN_|LVL && u|
|000057e0| 74 2e 75 74 5f 74 69 6d | 65 20 3e 20 62 6f 6f 74 |t.ut_tim|e > boot|
|000057f0| 74 69 6d 65 29 0a 09 09 | 09 72 65 74 75 72 6e 28 |time)...|.return(|
|00005800| 75 74 2e 75 74 5f 70 69 | 64 20 26 20 32 35 35 29 |ut.ut_pi|d & 255)|
|00005810| 3b 0a 23 65 6c 73 65 0a | 09 09 69 66 20 28 75 74 |;.#else.|..if (ut|
|00005820| 2e 75 74 5f 74 79 70 65 | 20 3d 3d 20 52 55 4e 5f |.ut_type| == RUN_|
|00005830| 4c 56 4c 29 0a 09 09 09 | 72 65 74 75 72 6e 28 75 |LVL)....|return(u|
|00005840| 74 2e 75 74 5f 70 69 64 | 20 26 20 32 35 35 29 3b |t.ut_pid| & 255);|
|00005850| 0a 23 65 6e 64 69 66 0a | 20 20 7d 0a 20 20 69 66 |.#endif.| }. if|
|00005860| 20 28 66 70 29 20 66 63 | 6c 6f 73 65 28 66 70 29 | (fp) fc|lose(fp)|
|00005870| 3b 0a 0a 20 20 2f 2a 20 | 54 68 69 73 20 73 68 6f |;.. /* |This sho|
|00005880| 75 6c 64 20 6e 6f 74 20 | 68 61 70 70 65 6e 20 62 |uld not |happen b|
|00005890| 75 74 20 77 61 72 6e 20 | 74 68 65 20 75 73 65 72 |ut warn |the user|
|000058a0| 21 20 2a 2f 0a 20 20 66 | 70 72 69 6e 74 66 28 73 |! */. f|printf(s|
|000058b0| 74 64 65 72 72 2c 20 22 | 57 41 52 4e 49 4e 47 3a |tderr, "|WARNING:|
|000058c0| 20 63 6f 75 6c 64 20 6e | 6f 74 20 64 65 74 65 72 | could n|ot deter|
|000058d0| 6d 69 6e 65 20 72 75 6e | 6c 65 76 65 6c 20 2d 20 |mine run|level - |
|000058e0| 64 6f 69 6e 67 20 68 61 | 72 64 20 25 73 5c 6e 22 |doing ha|rd %s\n"|
|000058f0| 2c 0a 09 09 70 72 6f 67 | 6e 61 6d 65 29 3b 0a 20 |,...prog|name);. |
|00005900| 20 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c | fprintf|(stderr,|
|00005910| 20 22 20 20 28 69 74 27 | 73 20 62 65 74 74 65 72 | " (it'|s better|
|00005920| 20 74 6f 20 75 73 65 20 | 73 68 75 74 64 6f 77 6e | to use |shutdown|
|00005930| 20 69 6e 73 74 65 61 64 | 20 6f 66 20 25 73 20 66 | instead| of %s f|
|00005940| 72 6f 6d 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 |rom the |command |
|00005950| 6c 69 6e 65 29 5c 6e 22 | 2c 0a 09 09 70 72 6f 67 |line)\n"|,...prog|
|00005960| 6e 61 6d 65 29 3b 0a 20 | 20 72 65 74 75 72 6e 28 |name);. | return(|
|00005970| 2d 31 29 3b 0a 7d 0a 0a | 2f 2a 20 53 77 69 74 63 |-1);.}..|/* Switc|
|00005980| 68 20 74 6f 20 61 6e 6f | 74 68 65 72 20 72 75 6e |h to ano|ther run|
|00005990| 6c 65 76 65 6c 2e 20 2a | 2f 0a 76 6f 69 64 20 64 |level. *|/.void d|
|000059a0| 6f 5f 73 68 75 74 64 6f | 77 6e 28 63 68 61 72 20 |o_shutdo|wn(char |
|000059b0| 2a 66 6c 2c 20 63 68 61 | 72 20 2a 74 6d 29 0a 7b |*fl, cha|r *tm).{|
|000059c0| 0a 20 20 63 68 61 72 20 | 2a 61 72 67 73 5b 38 5d |. char |*args[8]|
|000059d0| 3b 0a 20 20 69 6e 74 20 | 69 20 3d 20 30 3b 0a 0a |;. int |i = 0;..|
|000059e0| 20 20 61 72 67 73 5b 69 | 2b 2b 5d 20 3d 20 22 73 | args[i|++] = "s|
|000059f0| 68 75 74 64 6f 77 6e 22 | 3b 0a 20 20 61 72 67 73 |hutdown"|;. args|
|00005a00| 5b 69 2b 2b 5d 20 3d 20 | 66 6c 3b 0a 20 20 69 66 |[i++] = |fl;. if|
|00005a10| 20 28 74 6d 29 20 7b 0a | 09 61 72 67 73 5b 69 2b | (tm) {.|.args[i+|
|00005a20| 2b 5d 20 3d 20 22 2d 74 | 22 3b 0a 09 61 72 67 73 |+] = "-t|";..args|
|00005a30| 5b 69 2b 2b 5d 20 3d 20 | 74 6d 3b 0a 20 20 7d 0a |[i++] = |tm;. }.|
|00005a40| 20 20 61 72 67 73 5b 69 | 2b 2b 5d 20 3d 20 22 6e | args[i|++] = "n|
|00005a50| 6f 77 22 3b 0a 20 20 61 | 72 67 73 5b 69 2b 2b 5d |ow";. a|rgs[i++]|
|00005a60| 20 3d 20 4e 55 4c 4c 3b | 0a 0a 20 20 65 78 65 63 | = NULL;|.. exec|
|00005a70| 76 28 22 2f 73 62 69 6e | 2f 73 68 75 74 64 6f 77 |v("/sbin|/shutdow|
|00005a80| 6e 22 2c 20 61 72 67 73 | 29 3b 0a 20 20 65 78 65 |n", args|);. exe|
|00005a90| 63 76 28 22 2f 65 74 63 | 2f 73 68 75 74 64 6f 77 |cv("/etc|/shutdow|
|00005aa0| 6e 22 2c 20 61 72 67 73 | 29 3b 0a 20 20 65 78 65 |n", args|);. exe|
|00005ab0| 63 76 28 22 2f 62 69 6e | 2f 73 68 75 74 64 6f 77 |cv("/bin|/shutdow|
|00005ac0| 6e 22 2c 20 61 72 67 73 | 29 3b 0a 20 20 70 65 72 |n", args|);. per|
|00005ad0| 72 6f 72 28 22 73 68 75 | 74 64 6f 77 6e 22 29 3b |ror("shu|tdown");|
|00005ae0| 0a 20 20 65 78 69 74 28 | 31 29 3b 0a 7d 0a 23 65 |. exit(|1);.}.#e|
|00005af0| 6e 64 69 66 0a 0a 2f 2a | 0a 20 2a 20 4d 61 69 6e |ndif../*|. * Main|
|00005b00| 20 70 72 6f 67 72 61 6d | 2e 0a 20 2a 20 57 72 69 | program|.. * Wri|
|00005b10| 74 65 20 61 20 77 74 6d | 70 20 65 6e 74 72 79 20 |te a wtm|p entry |
|00005b20| 61 6e 64 20 72 65 62 6f | 6f 74 20 63 71 2e 20 68 |and rebo|ot cq. h|
|00005b30| 61 6c 74 2e 0a 20 2a 2f | 0a 69 6e 74 20 6d 61 69 |alt.. */|.int mai|
|00005b40| 6e 28 61 72 67 63 2c 20 | 61 72 67 76 29 0a 69 6e |n(argc, |argv).in|
|00005b50| 74 20 61 72 67 63 3b 0a | 63 68 61 72 20 2a 2a 61 |t argc;.|char **a|
|00005b60| 72 67 76 3b 0a 7b 0a 20 | 20 73 74 72 75 63 74 20 |rgv;.{. | struct |
|00005b70| 75 74 6d 70 20 77 74 6d | 70 3b 0a 20 20 69 6e 74 |utmp wtm|p;. int|
|00005b80| 20 66 64 3b 0a 20 20 74 | 69 6d 65 5f 74 20 74 3b | fd;. t|ime_t t;|
|00005b90| 0a 20 20 69 6e 74 20 64 | 6f 5f 72 65 62 6f 6f 74 |. int d|o_reboot|
|00005ba0| 20 3d 20 30 3b 0a 20 20 | 69 6e 74 20 64 6f 5f 73 | = 0;. |int do_s|
|00005bb0| 79 6e 63 20 3d 20 31 3b | 0a 20 20 69 6e 74 20 64 |ync = 1;|. int d|
|00005bc0| 6f 5f 77 74 6d 70 20 3d | 20 31 3b 0a 20 20 69 6e |o_wtmp =| 1;. in|
|00005bd0| 74 20 64 6f 5f 6e 6f 74 | 68 69 6e 67 20 3d 20 30 |t do_not|hing = 0|
|00005be0| 3b 0a 20 20 69 6e 74 20 | 64 6f 5f 68 61 72 64 20 |;. int |do_hard |
|00005bf0| 3d 20 30 3b 0a 20 20 69 | 6e 74 20 63 3b 0a 23 69 |= 0;. i|nt c;.#i|
|00005c00| 66 20 43 4f 4d 50 41 54 | 49 42 4c 45 0a 20 20 63 |f COMPAT|IBLE. c|
|00005c10| 68 61 72 20 2a 74 6d 20 | 3d 20 4e 55 4c 4c 3b 0a |har *tm |= NULL;.|
|00005c20| 23 65 6e 64 69 66 0a 0a | 20 20 2f 2a 20 46 69 6e |#endif..| /* Fin|
|00005c30| 64 20 6f 75 74 20 77 68 | 6f 20 77 65 20 61 72 65 |d out wh|o we are|
|00005c40| 20 2a 2f 0a 20 20 69 66 | 20 28 28 70 72 6f 67 6e | */. if| ((progn|
|00005c50| 61 6d 65 20 3d 20 73 74 | 72 72 63 68 72 28 61 72 |ame = st|rrchr(ar|
|00005c60| 67 76 5b 30 5d 2c 20 27 | 2f 27 29 29 20 21 3d 20 |gv[0], '|/')) != |
|00005c70| 4e 55 4c 4c 29 0a 20 20 | 09 70 72 6f 67 6e 61 6d |NULL). |.prognam|
|00005c80| 65 2b 2b 3b 0a 20 20 65 | 6c 73 65 0a 20 20 09 70 |e++;. e|lse. .p|
|00005c90| 72 6f 67 6e 61 6d 65 20 | 3d 20 61 72 67 76 5b 30 |rogname |= argv[0|
|00005ca0| 5d 3b 0a 20 20 09 0a 20 | 20 69 66 20 28 67 65 74 |];. .. | if (get|
|00005cb0| 65 75 69 64 28 29 20 21 | 3d 20 30 29 20 7b 0a 09 |euid() !|= 0) {..|
|00005cc0| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 20 |fprintf(|stderr, |
|00005cd0| 22 25 73 3a 20 6d 75 73 | 74 20 62 65 20 73 75 70 |"%s: mus|t be sup|
|00005ce0| 65 72 75 73 65 72 2e 5c | 6e 22 2c 20 70 72 6f 67 |eruser.\|n", prog|
|00005cf0| 6e 61 6d 65 29 3b 0a 09 | 65 78 69 74 28 31 29 3b |name);..|exit(1);|
|00005d00| 0a 20 20 7d 0a 0a 20 20 | 69 66 20 28 21 73 74 72 |. }.. |if (!str|
|00005d10| 63 6d 70 28 70 72 6f 67 | 6e 61 6d 65 2c 20 22 72 |cmp(prog|name, "r|
|00005d20| 65 62 6f 6f 74 22 29 29 | 20 64 6f 5f 72 65 62 6f |eboot"))| do_rebo|
|00005d30| 6f 74 20 3d 20 31 3b 0a | 0a 20 20 2f 2a 20 47 65 |ot = 1;.|. /* Ge|
|00005d40| 74 20 66 6c 61 67 73 20 | 2a 2f 0a 20 20 77 68 69 |t flags |*/. whi|
|00005d50| 6c 65 28 28 63 20 3d 20 | 67 65 74 6f 70 74 28 61 |le((c = |getopt(a|
|00005d60| 72 67 63 2c 20 61 72 67 | 76 2c 20 22 3a 64 66 6e |rgc, arg|v, ":dfn|
|00005d70| 77 74 3a 22 29 29 20 21 | 3d 20 45 4f 46 29 20 7b |wt:")) !|= EOF) {|
|00005d80| 0a 09 73 77 69 74 63 68 | 28 63 29 20 7b 0a 09 09 |..switch|(c) {...|
|00005d90| 63 61 73 65 20 27 6e 27 | 3a 0a 09 09 09 64 6f 5f |case 'n'|:....do_|
|00005da0| 73 79 6e 63 20 3d 20 30 | 3b 0a 09 09 09 64 6f 5f |sync = 0|;....do_|
|00005db0| 77 74 6d 70 20 3d 20 30 | 3b 0a 09 09 09 62 72 65 |wtmp = 0|;....bre|
|00005dc0| 61 6b 3b 0a 09 09 63 61 | 73 65 20 27 77 27 3a 0a |ak;...ca|se 'w':.|
|00005dd0| 09 09 09 64 6f 5f 6e 6f | 74 68 69 6e 67 20 3d 20 |...do_no|thing = |
|00005de0| 31 3b 0a 09 09 09 62 72 | 65 61 6b 3b 0a 09 09 63 |1;....br|eak;...c|
|00005df0| 61 73 65 20 27 64 27 3a | 0a 09 09 09 64 6f 5f 77 |ase 'd':|....do_w|
|00005e00| 74 6d 70 20 3d 20 30 3b | 0a 09 09 09 62 72 65 61 |tmp = 0;|....brea|
|00005e10| 6b 3b 0a 09 09 63 61 73 | 65 20 27 66 27 3a 0a 09 |k;...cas|e 'f':..|
|00005e20| 09 09 64 6f 5f 68 61 72 | 64 20 3d 20 31 3b 0a 09 |..do_har|d = 1;..|
|00005e30| 09 09 62 72 65 61 6b 3b | 0a 23 69 66 20 43 4f 4d |..break;|.#if COM|
|00005e40| 50 41 54 49 42 4c 45 0a | 09 09 63 61 73 65 20 27 |PATIBLE.|..case '|
|00005e50| 74 27 3a 0a 09 09 09 74 | 6d 20 3d 20 6f 70 74 61 |t':....t|m = opta|
|00005e60| 72 67 3b 0a 09 09 09 62 | 72 65 61 6b 3b 0a 23 65 |rg;....b|reak;.#e|
|00005e70| 6e 64 69 66 0a 09 09 64 | 65 66 61 75 6c 74 3a 0a |ndif...d|efault:.|
|00005e80| 09 09 09 75 73 61 67 65 | 28 29 3b 0a 09 7d 0a 20 |...usage|();..}. |
|00005e90| 20 7d 0a 20 20 69 66 20 | 28 61 72 67 63 20 21 3d | }. if |(argc !=|
|00005ea0| 20 6f 70 74 69 6e 64 29 | 20 75 73 61 67 65 28 29 | optind)| usage()|
|00005eb0| 3b 0a 0a 23 69 66 20 43 | 4f 4d 50 41 54 49 42 4c |;..#if C|OMPATIBL|
|00005ec0| 45 0a 20 20 69 66 20 28 | 21 64 6f 5f 68 61 72 64 |E. if (|!do_hard|
|00005ed0| 20 26 26 20 21 64 6f 5f | 6e 6f 74 68 69 6e 67 29 | && !do_|nothing)|
|00005ee0| 20 7b 0a 09 2f 2a 20 53 | 65 65 20 69 66 20 77 65 | {../* S|ee if we|
|00005ef0| 20 61 72 65 20 69 6e 20 | 72 75 6e 6c 65 76 65 6c | are in |runlevel|
|00005f00| 20 30 20 6f 72 20 36 2e | 20 2a 2f 0a 09 63 20 3d | 0 or 6.| */..c =|
|00005f10| 20 67 65 74 5f 72 75 6e | 6c 65 76 65 6c 28 29 3b | get_run|level();|
|00005f20| 0a 09 69 66 20 28 63 20 | 3e 20 27 30 27 20 26 26 |..if (c |> '0' &&|
|00005f30| 20 63 20 3c 20 27 36 27 | 29 0a 09 09 64 6f 5f 73 | c < '6'|)...do_s|
|00005f40| 68 75 74 64 6f 77 6e 28 | 64 6f 5f 72 65 62 6f 6f |hutdown(|do_reboo|
|00005f50| 74 20 3f 20 22 2d 72 22 | 20 3a 20 22 2d 68 22 2c |t ? "-r"| : "-h",|
|00005f60| 20 74 6d 29 3b 0a 20 20 | 7d 0a 23 65 6e 64 69 66 | tm);. |}.#endif|
|00005f70| 0a 0a 20 20 2f 2a 20 52 | 65 63 6f 72 64 20 74 68 |.. /* R|ecord th|
|00005f80| 65 20 66 61 63 74 20 74 | 68 61 74 20 77 65 27 72 |e fact t|hat we'r|
|00005f90| 65 20 67 6f 69 6e 67 20 | 64 6f 77 6e 20 2a 2f 0a |e going |down */.|
|00005fa0| 20 20 69 66 20 28 64 6f | 5f 77 74 6d 70 20 26 26 | if (do|_wtmp &&|
|00005fb0| 20 28 66 64 20 3d 20 6f | 70 65 6e 28 57 54 4d 50 | (fd = o|pen(WTMP|
|00005fc0| 5f 46 49 4c 45 2c 20 4f | 5f 57 52 4f 4e 4c 59 7c |_FILE, O|_WRONLY||
|00005fd0| 4f 5f 41 50 50 45 4e 44 | 29 29 20 3e 3d 20 30 29 |O_APPEND|)) >= 0)|
|00005fe0| 20 7b 0a 20 20 09 74 69 | 6d 65 28 26 74 29 3b 0a | {. .ti|me(&t);.|
|00005ff0| 20 20 09 73 74 72 63 70 | 79 28 77 74 6d 70 2e 75 | .strcp|y(wtmp.u|
|00006000| 74 5f 75 73 65 72 2c 20 | 22 73 68 75 74 64 6f 77 |t_user, |"shutdow|
|00006010| 6e 22 29 3b 0a 20 20 09 | 73 74 72 63 70 79 28 77 |n");. .|strcpy(w|
|00006020| 74 6d 70 2e 75 74 5f 6c | 69 6e 65 2c 20 22 7e 22 |tmp.ut_l|ine, "~"|
|00006030| 29 3b 0a 20 20 09 73 74 | 72 63 70 79 28 77 74 6d |);. .st|rcpy(wtm|
|00006040| 70 2e 75 74 5f 69 64 2c | 20 20 22 7e 7e 22 29 3b |p.ut_id,| "~~");|
|00006050| 0a 20 20 09 77 74 6d 70 | 2e 75 74 5f 70 69 64 20 |. .wtmp|.ut_pid |
|00006060| 3d 20 30 3b 0a 20 20 09 | 77 74 6d 70 2e 75 74 5f |= 0;. .|wtmp.ut_|
|00006070| 74 79 70 65 20 3d 20 52 | 55 4e 5f 4c 56 4c 3b 0a |type = R|UN_LVL;.|
|00006080| 20 20 09 77 74 6d 70 2e | 75 74 5f 74 69 6d 65 20 | .wtmp.|ut_time |
|00006090| 3d 20 74 3b 0a 20 20 09 | 77 72 69 74 65 28 66 64 |= t;. .|write(fd|
|000060a0| 2c 20 28 63 68 61 72 20 | 2a 29 26 77 74 6d 70 2c |, (char |*)&wtmp,|
|000060b0| 20 73 69 7a 65 6f 66 28 | 77 74 6d 70 29 29 3b 0a | sizeof(|wtmp));.|
|000060c0| 20 20 09 63 6c 6f 73 65 | 28 66 64 29 3b 0a 20 20 | .close|(fd);. |
|000060d0| 7d 0a 0a 20 20 2f 2a 20 | 45 78 69 74 20 69 66 20 |}.. /* |Exit if |
|000060e0| 61 6c 6c 20 77 65 20 77 | 61 6e 74 65 64 20 74 6f |all we w|anted to|
|000060f0| 20 64 6f 20 77 61 73 20 | 77 72 69 74 65 20 61 20 | do was |write a |
|00006100| 77 74 6d 70 20 72 65 63 | 6f 72 64 2e 20 2a 2f 0a |wtmp rec|ord. */.|
|00006110| 20 20 69 66 20 28 64 6f | 5f 6e 6f 74 68 69 6e 67 | if (do|_nothing|
|00006120| 29 20 65 78 69 74 28 30 | 29 3b 0a 0a 20 20 69 66 |) exit(0|);.. if|
|00006130| 20 28 64 6f 5f 73 79 6e | 63 29 20 7b 0a 09 73 79 | (do_syn|c) {..sy|
|00006140| 6e 63 28 29 3b 0a 09 73 | 6c 65 65 70 28 32 29 3b |nc();..s|leep(2);|
|00006150| 0a 20 20 7d 0a 0a 20 20 | 69 66 20 28 64 6f 5f 72 |. }.. |if (do_r|
|00006160| 65 62 6f 6f 74 29 20 7b | 0a 09 72 65 62 6f 6f 74 |eboot) {|..reboot|
|00006170| 28 30 78 66 65 65 31 64 | 65 61 64 2c 20 36 37 32 |(0xfee1d|ead, 672|
|00006180| 32 37 34 37 39 33 2c 20 | 30 78 30 31 32 33 34 35 |274793, |0x012345|
|00006190| 36 37 29 3b 0a 20 20 7d | 20 65 6c 73 65 20 7b 0a |67);. }| else {.|
|000061a0| 09 2f 2a 20 54 75 72 6e | 20 6f 6e 20 68 61 72 64 |./* Turn| on hard|
|000061b0| 20 72 65 62 6f 6f 74 2c | 20 43 54 52 4c 2d 41 4c | reboot,| CTRL-AL|
|000061c0| 54 2d 44 45 4c 20 77 69 | 6c 6c 20 72 65 62 6f 6f |T-DEL wi|ll reboo|
|000061d0| 74 20 6e 6f 77 20 2a 2f | 0a 09 72 65 62 6f 6f 74 |t now */|..reboot|
|000061e0| 28 30 78 66 65 65 31 64 | 65 61 64 2c 20 36 37 32 |(0xfee1d|ead, 672|
|000061f0| 32 37 34 37 39 33 2c 20 | 30 78 38 39 41 42 43 44 |274793, |0x89ABCD|
|00006200| 45 46 29 3b 0a 0a 09 2f | 2a 20 53 74 6f 70 20 69 |EF);.../|* Stop i|
|00006210| 6e 69 74 3b 20 69 74 20 | 69 73 20 69 6e 73 65 6e |nit; it |is insen|
|00006220| 73 69 74 69 76 65 20 74 | 6f 20 74 68 65 20 73 69 |sitive t|o the si|
|00006230| 67 6e 61 6c 73 20 73 65 | 6e 74 20 62 79 20 74 68 |gnals se|nt by th|
|00006240| 65 20 6b 65 72 6e 65 6c | 2e 20 2a 2f 0a 09 6b 69 |e kernel|. */..ki|
|00006250| 6c 6c 28 31 2c 20 53 49 | 47 54 53 54 50 29 3b 0a |ll(1, SI|GTSTP);.|
|00006260| 0a 09 2f 2a 20 41 6e 64 | 20 70 65 72 66 6f 72 6d |../* And| perform|
|00006270| 20 74 68 65 20 60 68 61 | 6c 74 27 20 73 79 73 74 | the `ha|lt' syst|
|00006280| 65 6d 20 63 61 6c 6c 2e | 20 2a 2f 0a 09 72 65 62 |em call.| */..reb|
|00006290| 6f 6f 74 28 30 78 66 65 | 65 31 64 65 61 64 2c 20 |oot(0xfe|e1dead, |
|000062a0| 36 37 32 32 37 34 37 39 | 33 2c 20 30 78 43 44 45 |67227479|3, 0xCDE|
|000062b0| 46 30 31 32 33 29 3b 0a | 20 20 7d 0a 20 20 2f 2a |F0123);.| }. /*|
|000062c0| 20 49 66 20 77 65 20 72 | 65 74 75 72 6e 2c 20 77 | If we r|eturn, w|
|000062d0| 65 20 28 63 29 6f 6e 74 | 69 6e 75 65 64 20 66 72 |e (c)ont|inued fr|
|000062e0| 6f 6d 20 74 68 65 20 6b | 65 72 6e 65 6c 20 6d 6f |om the k|ernel mo|
|000062f0| 6e 69 74 6f 72 2e 20 2a | 2f 0a 20 20 72 65 62 6f |nitor. *|/. rebo|
|00006300| 6f 74 28 30 78 66 65 65 | 31 64 65 61 64 2c 20 36 |ot(0xfee|1dead, 6|
|00006310| 37 32 32 37 34 37 39 33 | 2c 20 30 29 3b 0a 20 20 |72274793|, 0);. |
|00006320| 6b 69 6c 6c 28 31 2c 20 | 53 49 47 43 4f 4e 54 29 |kill(1, |SIGCONT)|
|00006330| 3b 0a 0a 20 20 65 78 69 | 74 28 30 29 3b 0a 7d 0a |;.. exi|t(0);.}.|
|00006340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.